-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add model, relations for organisational units #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bdd2396 to
2c34e1c
Compare
- add new orga unit type - add metadata field for orga unit
populate orga unit metadatafield populate orga unit to unit relations correctly
postgres has range types (daterange and tstzrange), which allow querying for overlaps. maybe something to try in a follow-up pr. |
| export const organisationalUnitTypes = [ | ||
| "body", | ||
| "consortium", | ||
| "institution", | ||
| "umbrella_consortium", | ||
| ] as const; | ||
| export const organisationalUnitStatus = [ | ||
| "cooperating_partner", | ||
| "member", | ||
| "national_coordinating_institution", | ||
| "national_representative_institution", | ||
| "partner_institution", | ||
| ] as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these also live in lookup tables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stefanprobst i guess yes. should we also use uuid7 in lookuptable id columns or opt for smallint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use uuidv7 everywhere.
update schema, initial migration and seed script
- adds lookuptables for organisational unit types and status - adds regional hub type - adapts initial migration to seed type and status
stefanprobst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
todo:
supersedes #26