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 check_reviewer_flags(value)[source]

Person.reviewer_flags validator

classmethod name_must_contain_space(value)[source]

Person.name validator

classmethod reviewed_networks_validator(value)[source]

Person.reviewed_networks validator

classmethod reviewed_non_physical_species_validator(value)[source]

Person.reviewed_non_physical_species validator

classmethod reviewed_reactions_validator(value)[source]

Person.reviewed_reactions validator

classmethod reviewed_species_validator(value)[source]

Person.reviewed_species validator

classmethod uploaded_networks_validator(value)[source]

Person.uploaded_networks validator

classmethod uploaded_non_physical_species_validator(value)[source]

Person.uploaded_non_physical_species validator

classmethod uploaded_reactions_validator(value)[source]

Person.uploaded_reactions validator

classmethod uploaded_species_validator(value)[source]

Person.uploaded_species validator

classmethod validate_email(value)[source]

Person.email 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