26 lines
857 B
C#
26 lines
857 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Back.Data.Models
|
|
{
|
|
[PrimaryKey("CompanyID", "PermissionID", "CalculationTypeID")]
|
|
public class PermissionPeriod
|
|
{
|
|
public int CompanyID { get; set; }
|
|
public int PermissionID { get; set; }
|
|
public int TotalAmount { get; set; }
|
|
public int RemainingAmount { get; set; }
|
|
public int CalculationTypeID { get; set; }
|
|
public bool? IsLocked { get; set; }
|
|
|
|
#region Navigation
|
|
[ForeignKey("CompanyID")]
|
|
public virtual Company Company { get; set; }
|
|
[ForeignKey("PermissionID")]
|
|
public virtual Permission Permission { get; set; }
|
|
[ForeignKey("CalculationTypeID")]
|
|
public virtual CalculationType CalculationType { get; set; }
|
|
#endregion
|
|
}
|
|
}
|