first commit
This commit is contained in:
14
db/models/users.py
Normal file
14
db/models/users.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from sqlalchemy import BIGINT
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from db.base import Base
|
||||
|
||||
|
||||
class User(Base):
|
||||
__tablename__ = "users"
|
||||
|
||||
id: Mapped[int] = mapped_column(
|
||||
BIGINT, nullable=False, unique=True, primary_key=True
|
||||
)
|
||||
support_thread_id: Mapped[int] = mapped_column(BIGINT, nullable=True, unique=True)
|
||||
referal_id: Mapped[int] = mapped_column(BIGINT, nullable=True)
|
||||
Reference in New Issue
Block a user