Add example model, route and logic for development testing and boilerplate
This commit is contained in:
parent
f1cd1e8bfa
commit
cac002e3e6
11 changed files with 80 additions and 0 deletions
12
app/models/example_model.py
Normal file
12
app/models/example_model.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from sqlmodel import SQLModel, Field
|
||||
|
||||
class ExampleModel(SQLModel, table=True):
|
||||
|
||||
id: int | None = Field(
|
||||
default=None,
|
||||
primary_key=True
|
||||
)
|
||||
|
||||
example_text: str
|
||||
|
||||
example_number: int
|
||||
Loading…
Reference in a new issue