Changeset 70a9f6d for iknow-api/Models


Ignore:
Timestamp:
12/10/25 15:12:34 (10 months ago)
Author:
imbrsk <boris696boris@…>
Branches:
master
Children:
61fd94e
Parents:
33c69d6
Message:

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.
Location:
iknow-api/Models
Files:
1 added
3 edited

Legend:

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

    r33c69d6 r70a9f6d  
    33namespace iknow_api.Models
    44{
    5     public enum Type
    6     {
    7         Winter, Summer
    8     }
    95    public class EnrolledSemesters
    106    {
     
    128        public int UserId { get; set; }
    139        public User? User { get; set; }
    14         public int Year { get; set; }
    15         public int Type { get; set; }
    1610        public Quota QuotaType { get; set; }
    1711        public int MajorId { get; set; }
     12        public string? StudentComment { get; set; }
     13        public string? Node { get; set; }
     14        public DateTime CratedAt { get; set; }
     15        public DateTime LastChange { get; set; }
     16        public DateTime Veryfied { get; set; }
     17        public ActiveSemesters? Semester { get; set; }
    1818        public Major? Major { get; set; }
    1919        public ICollection<Payment>? Users { get; set; }
  • iknow-api/Models/SemesterSubjects.cs

    r33c69d6 r70a9f6d  
    99        public int SubjectId { get; set; }
    1010        public int ProfessorId { get; set; }
    11        
     11        public bool Signature { get; set; }
    1212        public User? User { get; set; }                 
    1313        public EnrolledSemesters? EnrolledSemester { get; set; }
  • iknow-api/Models/User.cs

    r33c69d6 r70a9f6d  
    1212    public class User
    1313    {
     14        internal object Payments;
     15
    1416        public int Id { get; set; }
    1517        public string? Name { get; set; }
Note: See TracChangeset for help on using the changeset viewer.