19 lines
459 B
Python
19 lines
459 B
Python
from typing import Optional
|
|
|
|
from app.models import Base
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
from sqlalchemy import JSON
|
|
from sqlalchemy import BigInteger
|
|
|
|
|
|
class User(Base):
|
|
__tablename__ = "users"
|
|
id: Mapped[int] = mapped_column(BigInteger, primary_key=True)
|
|
|
|
spotify_auth: Mapped[dict] = mapped_column(JSON, default={})
|
|
ymusic_auth: Mapped[dict] = mapped_column(JSON, default={})
|
|
|
|
default: Mapped[str]
|
|
|
|
|
|
__all__ = ["User"]
|