|
Last change
on this file since f8af32b was f8af32b, checked in by stefansaveski <stefansaveski19@…>, 11 months ago |
|
Add EMBG property and consolidate migrations
Added EMBG property to User and RegisterDto classes to store unique user identifiers. Removed outdated migration files and introduced a new consolidated migration (20251029131316_InitialCreate) to define the database schema, including User, ContactInfo, EnrollmentInfo, HighSchool, and RefreshToken tables with appropriate relationships. Updated AppDbContextModelSnapshot to reflect the new schema. Changed the development database connection string in appsettings.Development.json for improved configuration.
|
-
Property mode
set to
100644
|
|
File size:
756 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 | namespace iknow_api.Models
|
|---|
| 4 | {
|
|---|
| 5 | public enum UserRole
|
|---|
| 6 | {
|
|---|
| 7 | Admin,
|
|---|
| 8 | Professor,
|
|---|
| 9 | Strudent
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | public class User
|
|---|
| 13 | {
|
|---|
| 14 | public int Id { get; set; }
|
|---|
| 15 | public string? Name { get; set; }
|
|---|
| 16 | public string? EMBG {get; set; }
|
|---|
| 17 | public string? Surname { get; set; }
|
|---|
| 18 | public string? Index { get; set; }
|
|---|
| 19 | public string? Email { get; set; }
|
|---|
| 20 | public string? PasswordHash { get; set; }
|
|---|
| 21 | public DateTime Bday { get; set; }
|
|---|
| 22 | public DateTime CreatedAt { get; set; }
|
|---|
| 23 | public UserRole Role { get; set; }
|
|---|
| 24 | public HighSchool? HighSchool { get; set; }
|
|---|
| 25 | public ContactInfo? ContactInfo { get; set; }
|
|---|
| 26 | public EnrollmentInfo? EnrollmentInfo { get; set; }
|
|---|
| 27 |
|
|---|
| 28 | }
|
|---|
| 29 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.