using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace MyPortal.Database.Models.Entity
{
    [Table("StudentCharges")]
    public class StudentCharge : BaseTypes.Entity
    {
        public StudentCharge()
        {
            BillStudentCharges = new HashSet<BillStudentCharge>();
        }

        [Column(Order = 2)] public Guid StudentId { get; set; }

        [Column(Order = 3)] public Guid ChargeId { get; set; }

        [Column(Order = 4)] public Guid ChargeBillingPeriodId { get; set; }

        [Column(Order = 5)] public string Description { get; set; }

        public virtual Student Student { get; set; }
        public virtual Charge Charge { get; set; }
        public virtual ChargeBillingPeriod ChargeBillingPeriod { get; set; }

        public virtual ICollection<BillStudentCharge> BillStudentCharges { get; set; }
    }
}