15 lines
312 B
Python
15 lines
312 B
Python
from sqlalchemy import Column, Integer, JSON
|
||
|
||
|
||
from app.database import Base
|
||
|
||
|
||
class Chats(Base):
|
||
__tablename__ = "chats"
|
||
|
||
id = Column(Integer, primary_key=True)
|
||
chat = Column(JSON)
|
||
allowed_users = Column(JSON)
|
||
|
||
def __str__(self):
|
||
return f"Чат #{self.id} с {self.allowed_users}."
|