Ignore:
File:
1 edited

Legend:

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

    rc42181c r1b20b22  
     1using System.ComponentModel.DataAnnotations.Schema;
     2
    13namespace iknow_api.Models
    24{
    3     /// <summary>
    4     /// The student is reached through the enrolment: enrolled_id -> user_id.
    5     /// A user_id here would be redundant and could contradict the enrolment,
    6     /// which is the BCNF violation found during normalization (Phase 5).
    7     /// </summary>
    85    public class Payment
    96    {
    107        public int Id { get; set; }
    118
     9        public int UserId { get; set; }
     10        public User? User { get; set; }
    1211        public int EnrollmentInfoId { get; set; }
    1312        public int Amount { get; set; }
    1413        public EnrolledSemesters? EnrolledSemesters { get; set; }
     14
    1515    }
    1616}
Note: See TracChangeset for help on using the changeset viewer.