Improved Licensing

This commit is contained in:
2026-02-18 00:00:32 +01:00
parent a062383af0
commit af2c9e7fd8
17 changed files with 831 additions and 250 deletions

View File

@@ -365,8 +365,7 @@ class LicenseKey(DBModel):
# Limits
max_employees: int = 5
max_posts_per_day: int = 10
max_researches_per_day: int = 5
daily_token_limit: Optional[int] = None # None = unlimited
# Usage
used: bool = False
@@ -382,7 +381,6 @@ class CompanyDailyQuota(DBModel):
id: Optional[UUID] = None
company_id: UUID
date: date
posts_created: int = 0
researches_created: int = 0
tokens_used: int = 0
created_at: Optional[datetime] = None
updated_at: Optional[datetime] = None