first one
This commit is contained in:
21
bot/app/db/models.py
Normal file
21
bot/app/db/models.py
Normal file
@ -0,0 +1,21 @@
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy import Column, Integer, String, BigInteger, Uuid
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
import uuid
|
||||
|
||||
from db.base import Base
|
||||
|
||||
class User(Base):
|
||||
__tablename__ = "user"
|
||||
|
||||
id = Column(BigInteger, primary_key=True)
|
||||
name = Column(String)
|
||||
username = Column(String)
|
||||
#
|
||||
#
|
||||
# class Queue(Base):
|
||||
# __tablename__ = "queue"
|
||||
#
|
||||
# id = Column(Uuid, primary_key=True, default=uuid.uuid4())
|
||||
# owner = relationship(User)
|
||||
Reference in New Issue
Block a user