🎉 Initialize FastAPI boilerplate

This commit is contained in:
Finn Christiansen 2023-08-10 22:46:36 +02:00
parent 06ffc42ec6
commit 248d73806f
21 changed files with 638 additions and 0 deletions

1
app/models/__init__.py Normal file
View file

@ -0,0 +1 @@
from .item import Item

11
app/models/item.py Normal file
View file

@ -0,0 +1,11 @@
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)