fastapi-boilerplate/app/models/item.py

12 lines
264 B
Python
Raw Permalink Normal View History

from sqlalchemy import Column, Integer, String
2023-08-10 22:46:36 +02:00
from db.database import Base
2023-08-10 22:46:36 +02:00
class Item(Base):
__tablename__ = "item"
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
description = Column(String, index=True)