refactor: split schemas.py into schemas/ package

This commit is contained in:
2026-04-19 17:08:11 +03:00
parent a225d2efc6
commit 239368e595
6 changed files with 268 additions and 164 deletions

32
backend/schemas/common.py Normal file
View File

@@ -0,0 +1,32 @@
from pydantic import BaseModel
from typing import Optional, List
from datetime import datetime
# --- System Settings ---
class SystemSettingBase(BaseModel):
key: str
value: str
class SystemSetting(SystemSettingBase):
class Config:
from_attributes = True
# --- Database Management ---
class BackupInfo(BaseModel):
filename: str
size_bytes: int
created_at: datetime
class DatabaseStats(BaseModel):
backup_count: int
total_size_bytes: int
class DbSettingsUpdate(BaseModel):
retention_count: int
schedule_hour: int
schedule_freq_days: int