using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; using Sockeye.Biz; namespace Sockeye.Models { public class SubscriptionServer : ICoreBizObjectModel { public long Id { get; set; } public uint Concurrency { get; set; } [Required] public string Name { get; set; } public bool Active { get; set; } public string Notes { get; set; } public DateTime Created { get; set; } [Required] public string DataCenter { get; set; } [Required] public string TimeZone { get; set; } public DateTime? LastUpdated { get; set; } public DateTime SubscriptionExpire { get; set; } public bool Trial { get; set; } public DateTime? TrialExpire { get; set; } public string TrialContact { get; set; } public string TrialEmail { get; set; } public string TrialCompany { get; set; } public string OperatingSystem { get; set; } public string CustomerSubDomain { get; set; } public long? CustomerId { get; set; } public long? LicenseId { get; set; } public string Wiki { get; set; } public List Tags { get; set; } public SubscriptionServer() { Tags = new List(); Created = DateTime.UtcNow; } [NotMapped, JsonIgnore] public SockType SType { get => SockType.SubscriptionServer; } }//eoc }//eons