-
Notifications
You must be signed in to change notification settings - Fork 43
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
PIMS-401: Create ORM Entity Models #1989
Conversation
Code Climate has analyzed commit adbbfd1 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 93.1%. View more on Code Climate. |
Running into issues with the OneToMany additions. Decided to get this merged so other tickets can be started, and we can address the OneToMany options later if we feel the need to include them. |
I'll just note that I think it is more common to use snake case for table / column names in Postgres, and at least in the natural resource ministries they have guidelines recommending as much. Not sure if similar DB guidelines exist for this ministry. Ultimately though these conventions are arbitrary and consistency is the more important thing at the end of the day. |
This is a good point. The table names appear to get converted to snake case in the database once built, but the column names don't. DPIA had specified the column names to address this. https://github.com/bcgov/cirmo-dpia/blob/main/src/backend/src/modules/ppq/entities/ppq.entity.ts Current PIMS database uses PascalCase for table names and columns. @LawrenceLau2020 @Sharala-Perumal Do we feel the need to address this? |
I'm good either way. |
As long as the case is consistent across tables and columns , I am okay either ways unless there is an obvious advantage of using one over the other. |
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.
No objections as of yet from team. Merging this as a first draft for now so we have the entities to work with.
PIMS-401: Create ORM Entity Models
🎯 Summary
PIMS-401
DB Diagram
🔰 Checklist