Changeset 1a9c843 for sql/schema.md
- Timestamp:
- 09/23/26 13:29:06 (5 hours ago)
- Branches:
- master
- Children:
- e7bafc0
- Parents:
- a12988e (diff), f7c8acf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
sql/schema.md (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sql/schema.md
ra12988e r1a9c843 111 111 payment { 112 112 integer id PK 113 integer user_id FK114 113 integer enrollment_id FK 115 114 integer amount … … 136 135 users ||--o| contact : has_contact 137 136 users ||--o{ token : has_token 138 users ||--o{ payment : pays139 137 users ||--o{ enrolled_semesters : submits 140 138 users ||--o{ user_documents : owns … … 184 182 they differ. 185 183 - `professour_subjects` keeps the spelling used by the table in `schema_creation.sql`. 184 - `payment` has no `user_id`: the student is reached through `enrollment_id`. 185 Storing it twice violated BCNF (`enrolled_id -> user_id`) and allowed a 186 payment to contradict the enrolment it refers to. Removed in Phase 5.
Note:
See TracChangeset
for help on using the changeset viewer.
