11 lines
368 B
Python
11 lines
368 B
Python
|
from sqlalchemy.ext.declarative import declarative_base
|
||
|
from sqlalchemy import BigInteger, Column, Integer
|
||
|
|
||
|
# Создание базового класса для моделей
|
||
|
Base = declarative_base()
|
||
|
|
||
|
class Users(Base):
|
||
|
__tablename__ = 'users'
|
||
|
|
||
|
id = Column(Integer, primary_key=True, index=True)
|
||
|
user_id = Column(BigInteger, unique=True, index = True)
|