fastapi-boilerplate/app/models/item.py

12 lines
270 B
Python
Raw Normal View History

2023-08-10 22:46:36 +02:00
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)