source: iknow-api/Models/User.cs@ 97a2322

Last change on this file since 97a2322 was 39f76a9, 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 
[618be76]1
2
[5eb7847]3namespace iknow_api.Models
[618be76]4{
5 public enum UserRole
6 {
7 Admin,
8 Professor,
[f0fc386]9 Student
[618be76]10 }
11
[9694de9]12 public class User
[618be76]13 {
[39f76a9]14 internal object Payments;
15
[618be76]16 public int Id { get; set; }
17 public string? Name { get; set; }
[f844b7e]18 public string? EMBG {get; set; }
[618be76]19 public string? Surname { get; set; }
20 public string? Index { get; set; }
21 public string? Email { get; set; }
[fc7b4b4]22 public string? PasswordHash { get; set; }
[ab652ff]23 public string? MiddleName { get; set; }
24 public string? Gender { get; set; }
25 public string? Nationality { get; set; }
26 public string? Citizenship { get; set; }
[618be76]27 public DateTime Bday { get; set; }
28 public DateTime CreatedAt { get; set; }
29 public UserRole Role { get; set; }
[c0256f3]30 public HighSchool? HighSchool { get; set; }
31 public ContactInfo? ContactInfo { get; set; }
32 public EnrollmentInfo? EnrollmentInfo { get; set; }
[5e22720]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; }
[c0256f3]38
[618be76]39 }
40}
Note: See TracBrowser for help on using the repository browser.