using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//
// This is here so CodeMaid doesn't reorganize this document
//
namespace WebDoorCreator.Data.DbModels
{
///
/// Tabella dati operation CONCRETE collegate alla porta
///
[Table("DoorOp")]
public class DoorOpModel
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int DoorOpId { get; set; }
///
/// porta di riferimento
///
public int DoorId { get; set; } = 0;
///
/// Tipo astratto di riferimento
///
public string ObjectId { get; set; } = "";
///
/// Descrizione
///
public string Description { get; set; } = "";
///
/// Data inserimento ordine
///
public DateTime DateIns { get; set; } = DateTime.Now;
///
/// Codice utente che ha creato
///
public string UserIdIns { get; set; } = "";
///
/// Data (ultima) modifica ordine
///
public DateTime DateMod { get; set; } = DateTime.Now;
///
/// Codice utente che ha creato
///
public string UserIdMod { get; set; } = "";
///
/// Oggetto Json per specifica configurazione ammessa
///
public string JsoncConfigVal { get; set; } = "";
///
/// Oggetto Json per salvare i VALORI selezionati
///
public string JsoncActVal { get; set; } = "";
[ForeignKey("DoorId")]
public virtual DoorModel? DoorNav { get; set; }
//[ForeignKey("DoorOpTypId")]
//public virtual DoorOpTypeModel? DoorOpTypeNav { get; set; }
}
}