Skip to content

Commit

Permalink
Add more fields to Person model
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Nov 3, 2023
1 parent a125f2a commit 122dc51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nsls2api/api/models/person_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ class Person(pydantic.BaseModel):
email: str
username: str
bnl_id: Optional[str]
bnl_employee: Optional[bool] = None
institution: Optional[str] = None
orcid: Optional[str] = None
globus_username: Optional[str] = None
pass_unique_id: Optional[str] = None
account_locked: Optional[bool] = None
cyber_agreement_signed: Optional[datetime.datetime] = None

facility_code: Optional[str] = None
facility_name: Optional[str] = None
citizenship: Optional[str] = None

class PersonSummary(pydantic.BaseModel):
firstname: str
Expand Down

0 comments on commit 122dc51

Please sign in to comment.