fastapi-boilerplate/app/models/item.py
Finn Christiansen a689b1c56d
Some checks failed
Python formatting PEP8 / Python-PEP8 (push) Failing after 13s
🚨 fix some linter warnings
2023-08-11 22:47:08 +02:00

11 lines
261 B
Python

from sqlalchemy import 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)