🎉 Initialize FastAPI boilerplate
This commit is contained in:
parent
06ffc42ec6
commit
248d73806f
21 changed files with 638 additions and 0 deletions
1
app/models/__init__.py
Normal file
1
app/models/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .item import Item
|
11
app/models/item.py
Normal file
11
app/models/item.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue