Changeset 2d64b2e for iknow-api/Models


Ignore:
Timestamp:
12/09/25 14:54:20 (10 months ago)
Author:
imbrsk <boris696boris@…>
Branches:
master
Children:
33c69d6, 691f152
Parents:
22439d3
Message:

Refactor model properties for consistency and clarity

Location:
iknow-api/Models
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • iknow-api/Models/ContactInfo.cs

    r22439d3 r2d64b2e  
    66    {
    77        public int Id { get; set; }
    8         public string? city { get; set; }
    9         public string? address { get; set; }
    10         public string? municipality { get; set; }
    11         public string? phoneNumber { get; set; }
    12         public string? microsoftEmail { get; set; }
     8        public string? City { get; set; }
     9        public string? Address { get; set; }
     10        public string? Municipality { get; set; }
     11        public string? PhoneNumber { get; set; }
     12        public string? MicrosoftEmail { get; set; }
    1313       
    1414        public int UserId { get; set; }
  • iknow-api/Models/Documents.cs

    r22439d3 r2d64b2e  
    44    {
    55        public int Id { get; set; }
    6         public string? name { get; set; }
    7         public string? body { get; set; }
    8         public int cost { get; set; }
     6        public string? Name { get; set; }
     7        public string? Body { get; set; }
     8        public int Cost { get; set; }
    99        public ICollection<UserDocuments>? User { get; set; }
    1010    }
  • iknow-api/Models/EnrollmentInfo.cs

    r22439d3 r2d64b2e  
    11using System.ComponentModel.DataAnnotations.Schema;
     2using Microsoft.AspNetCore.SignalR;
     3using Microsoft.Net.Http.Headers;
    24
    35namespace iknow_api.Models
     
    1113        public int Id { get; set; }
    1214        public int enrollmentYear { get; set; }
    13         // CS1597 fix: no semicolon after accessor block
    1415        public Quota quota { get; set; }
    1516        public int MajorId { get; set; }
     
    1718        public int UserId { get; set; }
    1819        public User? User { get; set; }
     20        public string? StudyType { get; set; }
     21        public string? StudyStatus { get; set; }
    1922
    2023    }
  • iknow-api/Models/HighSchool.cs

    r22439d3 r2d64b2e  
    33namespace iknow_api.Models
    44{
    5     public enum type
     5    public enum HighSchoolType
    66    {
    7         strucen, gimnazija
     7        Strucen, Gimnazija
    88    }
    99    public class HighSchool
     
    1111        public int Id { get; set; }
    1212        public float GPA { get; set; }
    13         public type tip { get; set; }
    14 
     13        public HighSchoolType HighSchoolType { get; set; }
    1514        public int UserId { get; set; }
    16         public User User { get; set; }
     15        public User? User { get; set; }
     16        public string? StudyLanguage { get; set; }
    1717    }
    1818}
  • iknow-api/Models/MajorSubjects.cs

    r22439d3 r2d64b2e  
    66        public int SubjectId { get; set; }
    77        public int MandatorySemester { get; set; }
    8         public int Akreditacija { get; set; }
     8        public int Accreditation { get; set; }
    99        public Major? Majors { get; set; }
    1010        public Subject? Subjects { get; set; }
  • iknow-api/Models/RefreshToken.cs

    r22439d3 r2d64b2e  
    77        public int Id { get; set; }
    88        public int UserId { get; set; }
    9         public User User { get; set; }
     9        public User? User { get; set; }
    1010        public string? Token { get; set; }
    1111        public DateTime ExpiresAt { get; set; }
  • iknow-api/Models/User.cs

    r22439d3 r2d64b2e  
    1919        public string? Email { get; set; }
    2020        public string? PasswordHash { get; set; }
     21        public string? MiddleName { get; set; }
     22        public string? Gender { get; set; }
     23        public string? Nationality { get; set; }
     24        public string? Citizenship { get; set; }
    2125        public DateTime Bday { get; set; }
    2226        public DateTime CreatedAt { get; set; }
Note: See TracChangeset for help on using the changeset viewer.