1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# generated by datamodel-codegen:
# filename: custom_base_path.json
# timestamp: 2019-07-26T00:00:00+00:00
from __future__ import annotations
from typing import List, Optional
from custom.models import Animal, Person, Property
class Spouse(Person):
job: Optional[str] = None
class Pet(Animal):
name: Optional[str] = None
class Child(Person):
school: Optional[str] = None
grade: Optional[float] = None
pets: Optional[List[Pet]] = None
class Owner(Person):
job: Optional[str] = None
spouse: Optional[Spouse] = None
children: Optional[List[Child]] = None
class House(Property):
address: str
owner: Optional[Owner] = None
|