using Core.Blueprint.Mongo; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace Core.Thalos.BuildingBlocks { [CollectionAttributeName("Tenants")] public class TenantRequest : Document { [BsonElement("name")] public string Name { get; set; } = null!; [BsonElement("taxIdentifier")] public string TaxIdentifier { get; set; } = null!; [BsonElement("addressLine1")] public string AddressLine1 { get; set; } = null!; [BsonElement("addressLine2")] [BsonIgnoreIfNull] public string? AddressLine2 { get; set; } [BsonElement("city")] public string City { get; set; } = null!; [BsonElement("state")] public string State { get; set; } = null!; [BsonElement("country")] public string Country { get; set; } = null!; [BsonElement("postalCode")] public string PostalCode { get; set; } = null!; [BsonElement("contactEmail")] public string ContactEmail { get; set; } = null!; [BsonElement("contactPhone")] public string ContactPhone { get; set; } = null!; [BsonElement("website")] [BsonIgnoreIfNull] public string? Website { get; set; } [BsonElement("connectionString")] [BsonIgnoreIfNull] public string? ConnectionString { get; set; } [BsonElement("isolated")] public bool Isolated { get; set; } } }