db
This commit is contained in:
1 parent
d82a7fdf1e
commit
335eb8c4ac
16 files changed
+370
-5930
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in new issue
Block a user