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;

namespace FSI.BT.IR.Plc.Settings.Log.Models
{
    public class Parameter
    {
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }

        public Plc Plc { get; set; }

        [ForeignKey(nameof(Plc.Id))]
        public int PlcId { get; set; }

        public int DbNo { get; set; }

        public int DbStart { get; set; }

        public int DbSize { get; set; }

        public DataType DataType { get; set; }

        public string DefaultValue { get; set; }

        public DateTime Created { get; set; } = DateTime.Now;

        public DateTime Updated { get; set; } = DateTime.Now;
    }
}
