refactor: Database class

This commit is contained in:
2023-08-26 16:52:19 +08:00
parent a7533a7c08
commit 003e1a7289
4 changed files with 57 additions and 16 deletions

View File

@ -14,5 +14,5 @@ class CommonBase(DeclarativeBase):
class Property(CommonBase):
__tablename__ = "property"
id: Mapped[str] = mapped_column(TEXT(), primary_key=True)
key: Mapped[str] = mapped_column(TEXT(), primary_key=True)
value: Mapped[str] = mapped_column(TEXT())