source: iknow-api/Models/User.cs@ c42181c

Last change on this file since c42181c was c42181c, checked in by Stefan-Saveski <stefansaveski19@…>, 8 days ago

Refactor payment model to remove redundant user_id, addressing BCNF violation in Phase 5 normalization

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[e49c3ed]1namespace iknow_api.Models
[2859225]2{
3 public enum UserRole
4 {
5 Admin,
6 Professor,
[c2f79d7]7 Student
[2859225]8 }
9
[ea40556]10 // Attributes follow the Users entity in the ER model exactly.
[9a57e89]11 public class User
[2859225]12 {
13 public int Id { get; set; }
14 public string? Name { get; set; }
[ea40556]15 public string? EMBG { get; set; }
[2859225]16 public string? Surname { get; set; }
17 public string? Index { get; set; }
18 public string? Email { get; set; }
[5b42c8d]19 public string? PasswordHash { get; set; }
[ea40556]20 public DateTime? Bday { get; set; }
[2859225]21 public DateTime CreatedAt { get; set; }
22 public UserRole Role { get; set; }
[ea40556]23 public Quota? Quota { get; set; }
24 public int? EnrollmentYear { get; set; }
25
[b38c39c]26 public HighSchool? HighSchool { get; set; }
27 public ContactInfo? ContactInfo { get; set; }
[a92a2a4]28 public ICollection<UserDocuments>? Documents { get; set; }
29
[ea40556]30 // Users 1 --submits-- N EnrolledSemesters
31 public ICollection<EnrolledSemesters>? Enrolments { get; set; }
[b38c39c]32
[ea40556]33 // Users 1 --teaches-- N SemestersSubjects
34 public ICollection<SemesterSubject>? TeachingSubjects { get; set; }
[2859225]35 }
[ea40556]36}
Note: See TracBrowser for help on using the repository browser.