source: iknow-api/Models/Payment.cs@ 20df1a3

Last change on this file since 20df1a3 was 20df1a3, checked in by Stefan-Saveski <stefansaveski19@…>, 10 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 
[5e22720]1namespace iknow_api.Models
2{
[20df1a3]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>
[5e22720]8 public class Payment
9 {
10 public int Id { get; set; }
11
12 public int EnrollmentInfoId { get; set; }
[1b20b22]13 public int Amount { get; set; }
[5e22720]14 public EnrolledSemesters? EnrolledSemesters { get; set; }
15 }
16}
Note: See TracBrowser for help on using the repository browser.