mirror of
https://github.com/dizedev/vk_lp.git
synced 2026-09-17 06:19:03 +00:00
16 lines
460 B
Python
16 lines
460 B
Python
from sqlalchemy import (BigInteger, Column, Identity, Text)
|
|
from sqlalchemy.orm import DeclarativeBase
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
pass
|
|
|
|
|
|
class UsersTokens(Base):
|
|
__tablename__ = "users_tokens"
|
|
|
|
id = Column("id", BigInteger, Identity(start=1, increment=1, minvalue=1, cycle=False, cache=1), nullable=False,
|
|
primary_key=True)
|
|
vkid = Column("vkid", BigInteger, nullable=False)
|
|
token = Column("token", Text, nullable=False)
|