12 lines
331 B
Python
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) |