This commit is contained in:
2026-02-18 00:02:25 +05:00
parent a1ef89ff9a
commit 5e0f779a4d
17 changed files with 404 additions and 11 deletions

3
api/models/base.py Normal file
View File

@@ -0,0 +1,3 @@
from sqlalchemy.orm import declarative_base
Base = declarative_base()

View File

@@ -0,0 +1,8 @@
from sqlalchemy import Column, String, DateTime
from api.models.base import Base
class Subscription(Base):
__tablename__ = 'subscriptions'
uuid = Column(String, primary_key=True, index=True)
user_id = Column(String, nullable=False, index=True)
until = Column(DateTime, nullable=False)