source: iknow-api/Models/EnrolledSemesters.cs@ 61fd94e

Last change on this file since 61fd94e was 70a9f6d, 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: 800 bytes
Line 
1using System.ComponentModel.DataAnnotations.Schema;
2
3namespace iknow_api.Models
4{
5 public class EnrolledSemesters
6 {
7 public int Id { get; set; }
8 public int UserId { get; set; }
9 public User? User { get; set; }
10 public Quota QuotaType { get; set; }
11 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; }
18 public Major? Major { get; set; }
19 public ICollection<Payment>? Users { get; set; }
20 public ICollection<SemesterSubject>? SemesterSubjects { get; set; }
21 }
22}
Note: See TracBrowser for help on using the repository browser.