mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: migrate orgconfig to 1.1
This commit is contained in:
parent
1423e4c432
commit
b425f3a6bd
5 changed files with 51 additions and 1 deletions
|
|
@ -83,12 +83,18 @@ class OrgGeneralConfig(BaseModel):
|
|||
color: str = "normal"
|
||||
watermark: bool = True
|
||||
|
||||
# Cloud
|
||||
class OrgCloudConfig(BaseModel):
|
||||
plan: Literal["free", "standard", "pro"] = "free"
|
||||
custom_domain: bool = False
|
||||
|
||||
|
||||
# Main Config
|
||||
class OrganizationConfigBase(BaseModel):
|
||||
config_version: str = "1.0"
|
||||
config_version: str = "1.1"
|
||||
general: OrgGeneralConfig
|
||||
features: OrgFeatureConfig
|
||||
cloud: OrgCloudConfig
|
||||
|
||||
|
||||
class OrganizationConfig(SQLModel, table=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue