Files
chongming-plugins/example/models/counter.py
T

8 lines
211 B
Python
Raw Normal View History

2026-07-23 17:45:44 +08:00
from sqlmodel import Field, SQLModel
2026-07-21 15:43:39 +08:00
2026-07-23 17:45:44 +08:00
class Counter(SQLModel, table=True):
__tablename__ = "counter" # type: ignore
name: str = Field(primary_key=True, index=True)
value: int = Field(default=0)