59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static MagMan.Core.Enums;
|
|
|
|
namespace MagMan.Data.Tenant.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
/// <summary>
|
|
/// Tabella dei Piano Richieste associate a Proj
|
|
/// </summary>
|
|
[Table("RequestPlan")]
|
|
public class RequestPlanModel
|
|
{
|
|
/// <summary>
|
|
/// Init classe
|
|
/// </summary>
|
|
public RequestPlanModel()
|
|
{
|
|
ResourcesList = new HashSet<ResourceModel>();
|
|
}
|
|
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int RequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Progetto di riferimento
|
|
/// </summary>
|
|
public int ProjDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data richiesta
|
|
/// </summary>
|
|
public DateTime DtRequest { get; set; }
|
|
|
|
/// <summary>
|
|
/// Tipo richiesta
|
|
/// </summary>
|
|
public ProjResState ReqState { get; set; } = ProjResState.ND;
|
|
|
|
/// <summary>
|
|
/// Record attivo (se false == NON è il piano scelto per i casi "previsionali" = ReqState >0 )
|
|
/// </summary>
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Navigazione ad oggetti child
|
|
/// </summary>
|
|
public virtual ICollection<ResourceModel>? ResourcesList { get; set; }
|
|
|
|
}
|
|
}
|