mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-07-01 12:16:26 +00:00
feat: add common model
This commit is contained in:
@ -3,18 +3,22 @@ from typing import Optional
|
||||
from sqlalchemy import TEXT, ForeignKey
|
||||
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
||||
|
||||
__all__ = [
|
||||
"SongsBase",
|
||||
"Pack",
|
||||
"PackLocalized",
|
||||
"Song",
|
||||
"SongLocalized",
|
||||
"Chart",
|
||||
"ChartLocalized",
|
||||
"ChartInfo",
|
||||
]
|
||||
|
||||
|
||||
class SongsBase(DeclarativeBase):
|
||||
pass
|
||||
|
||||
|
||||
class Property(SongsBase):
|
||||
__tablename__ = "property"
|
||||
|
||||
id: Mapped[str] = mapped_column(TEXT(), primary_key=True)
|
||||
value: Mapped[str] = mapped_column(TEXT())
|
||||
|
||||
|
||||
class Pack(SongsBase):
|
||||
__tablename__ = "pack"
|
||||
|
||||
|
Reference in New Issue
Block a user