wip
This commit is contained in:
parent
4be274d9e2
commit
c238b9d757
21 changed files with 219 additions and 184 deletions
13
learn_sql_model/models/hero.py
Normal file
13
learn_sql_model/models/hero.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from typing import Optional
|
||||
|
||||
from sqlmodel import Field
|
||||
|
||||
from learn_sql_model.models.fast_model import FastModel
|
||||
|
||||
|
||||
class Hero(FastModel, table=True):
|
||||
id: Optional[int] = Field(default=None, primary_key=True)
|
||||
name: str
|
||||
secret_name: str
|
||||
age: Optional[int] = None
|
||||
shoe_size: Optional[int] = None
|
||||
Loading…
Add table
Add a link
Reference in a new issue