Files
sockeye/server/models/SubscriptionServer.cs
2022-12-23 00:04:47 +00:00

51 lines
1.5 KiB
C#

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 string Wiki { get; set; }
public List<string> Tags { get; set; }
public SubscriptionServer()
{
Tags = new List<string>();
Created = DateTime.UtcNow;
}
[NotMapped, JsonIgnore]
public SockType SType { get => SockType.SubscriptionServer; }
}//eoc
}//eons