Files
talks-site/backend/app/models.py
T

12 lines
310 B
Python

from sqlalchemy import JSON, Column, Integer, String
from .database import Base
class Item(Base):
__tablename__ = "items"
id = Column(Integer, primary_key=True, index=True)
name = Column(String, index=True)
description = Column(String, nullable=True)
body = Column(JSON, nullable=False)