mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-07-03 13:16:26 +00:00
feat: add common model
This commit is contained in:
18
src/arcaea_offline/models/common.py
Normal file
18
src/arcaea_offline/models/common.py
Normal file
@ -0,0 +1,18 @@
|
||||
from sqlalchemy import TEXT
|
||||
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
||||
|
||||
__all__ = [
|
||||
"CommonBase",
|
||||
"Property",
|
||||
]
|
||||
|
||||
|
||||
class CommonBase(DeclarativeBase):
|
||||
pass
|
||||
|
||||
|
||||
class Property(CommonBase):
|
||||
__tablename__ = "property"
|
||||
|
||||
id: Mapped[str] = mapped_column(TEXT(), primary_key=True)
|
||||
value: Mapped[str] = mapped_column(TEXT())
|
Reference in New Issue
Block a user