mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 01:36:57 +08:00
12 lines
323 B
Python
12 lines
323 B
Python
from sqlmodel import Field, SQLModel
|
|
|
|
|
|
class term_model(SQLModel, table=True):
|
|
__tablename__ = "terms"
|
|
|
|
id: int = Field(primary_key=True, index=True)
|
|
term: str = Field(max_length=255)
|
|
definition: str = Field(max_length=255)
|
|
domain: str = Field(max_length=255)
|
|
create_time: int = Field(default=0)
|
|
|