source: iknow-api/Models/Payment.cs

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
RevLine 
[a92a2a4]1namespace iknow_api.Models
2{
[c42181c]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>
[a92a2a4]8 public class Payment
9 {
10 public int Id { get; set; }
11
12 public int EnrollmentInfoId { get; set; }
[ea40556]13 public int Amount { get; set; }
[a92a2a4]14 public EnrolledSemesters? EnrolledSemesters { get; set; }
15 }
16}
Note: See TracBrowser for help on using the repository browser.