mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init organizationconfig
This commit is contained in:
parent
982ba037f5
commit
de93d56945
6 changed files with 178 additions and 37 deletions
|
|
@ -1,13 +1,14 @@
|
|||
from typing import Optional
|
||||
from sqlmodel import Field, SQLModel
|
||||
from src.db.organization_config import OrganizationConfig
|
||||
|
||||
|
||||
class OrganizationBase(SQLModel):
|
||||
name: str
|
||||
description: Optional[str]
|
||||
description: Optional[str]
|
||||
slug: str
|
||||
email: str
|
||||
logo_image: Optional[str]
|
||||
logo_image: Optional[str]
|
||||
|
||||
|
||||
class Organization(OrganizationBase, table=True):
|
||||
|
|
@ -16,9 +17,11 @@ class Organization(OrganizationBase, table=True):
|
|||
creation_date: str = ""
|
||||
update_date: str = ""
|
||||
|
||||
|
||||
class OrganizationUpdate(OrganizationBase):
|
||||
pass
|
||||
|
||||
|
||||
class OrganizationCreate(OrganizationBase):
|
||||
pass
|
||||
|
||||
|
|
@ -26,5 +29,6 @@ class OrganizationCreate(OrganizationBase):
|
|||
class OrganizationRead(OrganizationBase):
|
||||
id: int
|
||||
org_uuid: str
|
||||
creation_date: str
|
||||
update_date: str
|
||||
config: OrganizationConfig | dict
|
||||
creation_date: str
|
||||
update_date: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue