|
Last change
on this file was c42181c, checked in by Stefan-Saveski <stefansaveski19@…>, 7 days ago |
|
Refactor payment model to remove redundant user_id, addressing BCNF violation in Phase 5 normalization
|
-
Property mode
set to
100644
|
|
File size:
528 bytes
|
| Line | |
|---|
| 1 | namespace iknow_api.Models
|
|---|
| 2 | {
|
|---|
| 3 | /// <summary>
|
|---|
| 4 | /// The student is reached through the enrolment: enrolled_id -> user_id.
|
|---|
| 5 | /// A user_id here would be redundant and could contradict the enrolment,
|
|---|
| 6 | /// which is the BCNF violation found during normalization (Phase 5).
|
|---|
| 7 | /// </summary>
|
|---|
| 8 | public class Payment
|
|---|
| 9 | {
|
|---|
| 10 | public int Id { get; set; }
|
|---|
| 11 |
|
|---|
| 12 | public int EnrollmentInfoId { get; set; }
|
|---|
| 13 | public int Amount { get; set; }
|
|---|
| 14 | public EnrolledSemesters? EnrolledSemesters { get; set; }
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.