learn-sql-model/learn_sql_model/models/hero.py
2023-05-19 14:11:01 -05:00

13 lines
313 B
Python

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