using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Yavsc.Models { public class Command { /// /// The command identifier /// [Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id {get; set; } public string ClientId { get; set; } /// /// The client /// [Required,ForeignKey("ClientId")] public ApplicationUser Client { get; set; } [Required] public string PerformerId { get; set; } /// /// The performer identifier /// [ForeignKey("PerformerId")] public PerformerProfile PerformerProfile { get; set; } public DateTime? ValidationDate {get; set;} /// /// Command creation Date & time /// /// public DateTime CreationDate {get; set;} public decimal? Previsional { get; set; } public List Bill { get; set; } /// /// Time span in seconds in which /// Validation will be considered as definitive /// public int Lag { get; set; } } }