first commit

This commit is contained in:
2026-09-17 03:43:51 +05:00
commit c4f01044e9
15 changed files with 3147 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
from dataclasses import dataclass
from typing import Optional
@dataclass
class User:
id: int
username: str
enabled: bool
@dataclass
class DailyAllowance:
user_id: int
weekday: int
allowance_seconds: int
@dataclass
class AccessWindow:
id: int
user_id: int
weekday: int
start_minute: int
end_minute: int
@dataclass
class TemporaryGrant:
id: int
user_id: int
seconds: int
expires_at: Optional[str]
consumed: bool