Person schema¶
TCKDB backend app schemas person module
- class tckdb.backend.app.schemas.person.Person(*, name: str, email: int, affiliation: int, uploaded_species: int = None, uploaded_non_physical_species: int = None, uploaded_reactions: int = None, uploaded_networks: int = None, reviewed_species: int = None, reviewed_non_physical_species: int = None, reviewed_reactions: int = None, reviewed_networks: int = None, reviewer_flags: Dict[str, str] = None, id: int)[source]¶
Properties to return to client
- class tckdb.backend.app.schemas.person.PersonBase(*, name: tckdb.backend.app.schemas.person.ConstrainedStrValue, email: tckdb.backend.app.schemas.person.ConstrainedStrValue, affiliation: tckdb.backend.app.schemas.person.ConstrainedStrValue, uploaded_species: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, uploaded_non_physical_species: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, uploaded_reactions: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, uploaded_networks: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, reviewed_species: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, reviewed_non_physical_species: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, reviewed_reactions: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, reviewed_networks: tckdb.backend.app.schemas.person.ConstrainedIntValue = 0, reviewer_flags: Dict[str, str] = None)[source]¶
A PersonBase class (shared properties)
- classmethod reviewed_non_physical_species_validator(value)[source]¶
Person.reviewed_non_physical_species validator
- class tckdb.backend.app.schemas.person.PersonCreate(*, name: str, email: str, affiliation: str, uploaded_species: int = 0, uploaded_non_physical_species: int = 0, uploaded_reactions: int = 0, uploaded_networks: int = 0, reviewed_species: int = 0, reviewed_non_physical_species: int = 0, reviewed_reactions: int = 0, reviewed_networks: int = 0, reviewer_flags: Dict[str, str] = None)[source]¶
Create a Person item: Properties to receive on item creation
- class tckdb.backend.app.schemas.person.PersonInDB(*, name: str, email: int, affiliation: int, uploaded_species: int = None, uploaded_non_physical_species: int = None, uploaded_reactions: int = None, uploaded_networks: int = None, reviewed_species: int = None, reviewed_non_physical_species: int = None, reviewed_reactions: int = None, reviewed_networks: int = None, reviewer_flags: Dict[str, str] = None, id: int)[source]¶
Properties stored in DB
- class tckdb.backend.app.schemas.person.PersonInDBBase(*, name: str, email: int, affiliation: int, uploaded_species: int = None, uploaded_non_physical_species: int = None, uploaded_reactions: int = None, uploaded_networks: int = None, reviewed_species: int = None, reviewed_non_physical_species: int = None, reviewed_reactions: int = None, reviewed_networks: int = None, reviewer_flags: Dict[str, str] = None, id: int)[source]¶
Properties shared by models stored in DB
- class tckdb.backend.app.schemas.person.PersonUpdate(*, name: str, email: str, affiliation: str, uploaded_species: int = None, uploaded_non_physical_species: int = None, uploaded_reactions: int = None, uploaded_networks: int = None, reviewed_species: int = None, reviewed_non_physical_species: int = None, reviewed_reactions: int = None, reviewed_networks: int = None, reviewer_flags: Dict[str, str] = None)[source]¶
Update an Person item: Properties to receive on item update