16 lines
508 B
Python
16 lines
508 B
Python
from sqlalchemy import create_engine, Column, Integer, String, JSON, Uuid
|
|
|
|
from db.base import Base
|
|
|
|
# Define a model with a JSON column
|
|
class Attachment(Base):
|
|
__tablename__ = 'attachments'
|
|
|
|
id = Column(Uuid, primary_key=True)
|
|
msg_id = Column(Integer, nullable=False, index=True)
|
|
attributes = Column(JSON, nullable=False)
|
|
vision = Column(JSON, nullable=False)
|
|
message = Column(JSON, nullable=False)
|
|
guild = Column(JSON, nullable=False)
|
|
channel = Column(JSON, nullable=False)
|