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

Last change on this file since bb02e3a was 70a9f6d, checked in by imbrsk <boris696boris@…>, 10 months ago

feat: Add ActiveSemesters model and update related entities

  • Introduced ActiveSemesters model with properties: id, year, and Type.
  • Updated EnrolledSemesters model to include new properties: CratedAt, LastChange, Veryfied, Node, and StudentComment.
  • Modified Payment model to change the primary key and updated table name to Payments.
  • Added Signature property to SemesterSubject model and updated table name to SemesterSubjects.
  • Created new migration to reflect changes in the database schema.
  • Updated User model to include a reference to Payments.
  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[2859225]1
2
[e49c3ed]3namespace iknow_api.Models
[2859225]4{
5 public enum UserRole
6 {
7 Admin,
8 Professor,
[c2f79d7]9 Student
[2859225]10 }
11
[9a57e89]12 public class User
[2859225]13 {
[70a9f6d]14 internal object Payments;
15
[2859225]16 public int Id { get; set; }
17 public string? Name { get; set; }
[f8af32b]18 public string? EMBG {get; set; }
[2859225]19 public string? Surname { get; set; }
20 public string? Index { get; set; }
21 public string? Email { get; set; }
[5b42c8d]22 public string? PasswordHash { get; set; }
[2d64b2e]23 public string? MiddleName { get; set; }
24 public string? Gender { get; set; }
25 public string? Nationality { get; set; }
26 public string? Citizenship { get; set; }
[2859225]27 public DateTime Bday { get; set; }
28 public DateTime CreatedAt { get; set; }
29 public UserRole Role { get; set; }
[b38c39c]30 public HighSchool? HighSchool { get; set; }
31 public ContactInfo? ContactInfo { get; set; }
32 public EnrollmentInfo? EnrollmentInfo { get; set; }
[a92a2a4]33 public ICollection<UserDocuments>? Documents { get; set; }
34 public ICollection<Payment>? EnrolledSemesters { get; set; }
35 public ICollection<SemesterSubject>? EnrolledSemesterUserSubjects { get; set; }
36
37 public ICollection<SemesterSubject>? TeachingSubjects { get; set; }
[b38c39c]38
[2859225]39 }
40}
Note: See TracBrowser for help on using the repository browser.