Add File
This commit is contained in:
12
backend/apps/settings/models/setting_models.py
Normal file
12
backend/apps/settings/models/setting_models.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
from sqlmodel import Field, SQLModel
|
||||||
|
|
||||||
|
from common.core.models import SnowflakeBase
|
||||||
|
|
||||||
|
|
||||||
|
class term_model(SnowflakeBase, table=True):
|
||||||
|
__tablename__ = "terms"
|
||||||
|
term: str = Field(max_length=255)
|
||||||
|
definition: str = Field(max_length=255)
|
||||||
|
domain: str = Field(max_length=255)
|
||||||
|
create_time: int = Field(default=0)
|
||||||
|
|
||||||
Reference in New Issue
Block a user