fastapi-boilerplate/app/models/item.py

11 lines
270 B
Python

from sqlalchemy import Boolean, Column, Integer, String
from database import Base
class Item(Base):
__tablename__ = "item"
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
description = Column(String, index=True)