....
This commit is contained in:
25
Back/Data/Models/PermissionPeriod.cs
Normal file
25
Back/Data/Models/PermissionPeriod.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user