using Khaemhat.Core.Entities; namespace Khaemhat.Core.Instance; /// /// A company in the instance registry (sys_companies, SPEC ยง5.4): its code, name and the location of its own /// database. The location is stored encrypted and is never shown or logged. /// public sealed class Company : Entity { /// Company code: upper-case letters, digits and underscore, 1 to 20 characters (database khaemhat_code). public string Code { get; set; } = string.Empty; /// Company name (ragione sociale). public string Name { get; set; } = string.Empty; /// The database engine name: Sqlite or PostgreSql. public string Engine { get; set; } = string.Empty; /// The database URL, encrypted with the instance key. public string ConnectionString { get; set; } = string.Empty; /// The company state. public CompanyStatus Status { get; set; } /// Whether this is the company opened by default. public bool IsDefault { get; set; } /// Free notes for administrators. public string? Notes { get; set; } }