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 ServicesDAO.models { [Table("plans")] public class Plan { [Key] [Column("PlanID")] public int PlanID { get; set; } [Column("name")] public string Name { get; set; } [Column("description")] public string Description { get; set; } // text [Column("price_factor")] public decimal? PriceFactor { get; set; } // decimal(12,2) [Column("resources")] public string Resources { get; set; } // mediumtext [Column("model")] public string Model { get; set; } [Column("service_id")] public int? ServiceId { get; set; } // int(11) DEFAULT NULL [Column("version")] public string Version { get; set; } [Column("active")] public bool Active { get; set; } // bit(1) NOT NULL } }