[haiz] haiz
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
from .common import *
|
||||
from .user import *
|
||||
from .house import *
|
||||
|
1
backend/schemas/house/__init__.py
Normal file
1
backend/schemas/house/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .house import *
|
17
backend/schemas/house/house.py
Normal file
17
backend/schemas/house/house.py
Normal file
@ -0,0 +1,17 @@
|
||||
from backend.schemas.main_model import MainModel
|
||||
|
||||
class HouseBase(MainModel):
|
||||
pass
|
||||
|
||||
class AreaBase(MainModel):
|
||||
pass
|
||||
|
||||
class AreaCreate(AreaBase):
|
||||
name: str
|
||||
desc: str
|
||||
|
||||
class HouseCreate(HouseBase):
|
||||
icon: str
|
||||
name: str
|
||||
address: str
|
||||
areas: list[AreaCreate]
|
Reference in New Issue
Block a user