Add tenant services, change id by _id and include delete endpoint for all entities
This commit is contained in:
		
							
								
								
									
										53
									
								
								Core.Thalos.External/Clients/Requests/TenantRequest.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								Core.Thalos.External/Clients/Requests/TenantRequest.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| 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; } | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin