moved models to separate folder

This commit is contained in:
Josh Burman
2021-09-04 23:50:22 -04:00
parent 1b7c56ac3e
commit c4fdd68af2
9 changed files with 84 additions and 58 deletions

10
app/models/constraint.py Normal file
View File

@ -0,0 +1,10 @@
from pydantic import BaseModel
from typing import Optional
class Constraint(BaseModel):
key: str
value: str
field_id: Optional[int]
option_id: Optional[int]
minimum: int
maximum: int