-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOrganization.cs
More file actions
49 lines (41 loc) · 1.81 KB
/
Organization.cs
File metadata and controls
49 lines (41 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.ComponentModel.DataAnnotations;
using Aquiis.Core.Validation;
namespace Aquiis.Core.Entities
{
public class Organization
{
[RequiredGuid]
[Display(Name = "Organization ID")]
public Guid Id { get; set; } = Guid.Empty;
/// <summary>
/// UserId of the account owner who created this organization
/// </summary>
public string OwnerId { get; set; } = string.Empty;
/// <summary>
/// Full organization name (e.g., "California Properties LLC")
/// </summary>
public string Name { get; set; } = string.Empty;
/// <summary>
/// Short display name for UI (e.g., "CA Properties")
/// </summary>
public string? DisplayName { get; set; }
/// <summary>
/// US state code (CA, TX, FL, etc.) - determines applicable regulations
/// </summary>
public string? State { get; set; }
/// <summary>
/// Active/inactive flag for soft delete
/// </summary>
public bool IsActive { get; set; } = true;
public string CreatedBy { get; set; } = string.Empty;
public DateTime CreatedOn { get; set; } = DateTime.UtcNow;
public string? LastModifiedBy { get; set; } = string.Empty;
public DateTime? LastModifiedOn { get; set; }
public bool IsDeleted { get; set; } = false;
// Navigation properties
public virtual ICollection<OrganizationUser> OrganizationUsers { get; set; } = new List<OrganizationUser>();
public virtual ICollection<Property> Properties { get; set; } = new List<Property>();
public virtual ICollection<Tenant> Tenants { get; set; } = new List<Tenant>();
public virtual ICollection<Lease> Leases { get; set; } = new List<Lease>();
}
}