Files
memestream/db/meme.py
T
2024-04-08 10:46:14 +10:00

12 lines
331 B
Python

from sqlalchemy import Column, Integer, String, JSON, Uuid
from db.base import Base
# Define a model with a JSON column
class Meme(Base):
__tablename__ = 'memes'
id = Column(Uuid, primary_key=True)
url = Column(String, nullable=False)
text = Column(String, nullable=False)
tags = Column(JSON, nullable=False)