mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-08-15 10:11:34 +08:00
✏ Update decimal tutorial source for consistency (#188)
This commit is contained in:

committed by
GitHub

parent
75540f9728
commit
95c02962ba
@ -9,7 +9,7 @@ class Hero(SQLModel, table=True):
|
||||
name: str
|
||||
secret_name: str
|
||||
age: Optional[int] = None
|
||||
money: condecimal(max_digits=6, decimal_places=3) = Field(default=0)
|
||||
money: condecimal(max_digits=5, decimal_places=3) = Field(default=0)
|
||||
|
||||
|
||||
sqlite_file_name = "database.db"
|
||||
|
Reference in New Issue
Block a user