fids/subscription-domain/subscription-manager/src/api/models/chat.py

11 lines
220 B
Python

from sqlalchemy import Column, Integer, String
from src.api.db import Base
class Chat(Base):
__tablename__ = "chats"
user_id = Column(Integer, primary_key=True)
chat_id = Column(String, primary_key=True)