|
Last change
on this file since 2d64b2e was 2d64b2e, checked in by imbrsk <boris696boris@…>, 10 months ago |
|
Refactor model properties for consistency and clarity
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Rev | Line | |
|---|
| [2859225] | 1 |
|
|---|
| 2 |
|
|---|
| [e49c3ed] | 3 | namespace 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 | {
|
|---|
| 14 | public int Id { get; set; }
|
|---|
| 15 | public string? Name { get; set; }
|
|---|
| [f8af32b] | 16 | public string? EMBG {get; set; }
|
|---|
| [2859225] | 17 | public string? Surname { get; set; }
|
|---|
| 18 | public string? Index { get; set; }
|
|---|
| 19 | public string? Email { get; set; }
|
|---|
| [5b42c8d] | 20 | public string? PasswordHash { get; set; }
|
|---|
| [2d64b2e] | 21 | public string? MiddleName { get; set; }
|
|---|
| 22 | public string? Gender { get; set; }
|
|---|
| 23 | public string? Nationality { get; set; }
|
|---|
| 24 | public string? Citizenship { get; set; }
|
|---|
| [2859225] | 25 | public DateTime Bday { get; set; }
|
|---|
| 26 | public DateTime CreatedAt { get; set; }
|
|---|
| 27 | public UserRole Role { get; set; }
|
|---|
| [b38c39c] | 28 | public HighSchool? HighSchool { get; set; }
|
|---|
| 29 | public ContactInfo? ContactInfo { get; set; }
|
|---|
| 30 | public EnrollmentInfo? EnrollmentInfo { get; set; }
|
|---|
| [a92a2a4] | 31 | public ICollection<UserDocuments>? Documents { get; set; }
|
|---|
| 32 | public ICollection<Payment>? EnrolledSemesters { get; set; }
|
|---|
| 33 | public ICollection<SemesterSubject>? EnrolledSemesterUserSubjects { get; set; }
|
|---|
| 34 |
|
|---|
| 35 | public ICollection<SemesterSubject>? TeachingSubjects { get; set; }
|
|---|
| [b38c39c] | 36 |
|
|---|
| [2859225] | 37 | }
|
|---|
| 38 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.