Stable multitenancy

This commit is contained in:
2026-09-24 10:25:07 +02:00
parent ef134a5b3c
commit 8e0c099867
54 changed files with 8900 additions and 603 deletions
@@ -3,6 +3,8 @@ namespace PostFundManagement.Domain.Models;
public class Activity
{
public long Id { get; set; }
public long TenantId { get; set; }
public long? ProjectId { get; set; }
@@ -0,0 +1,6 @@
namespace PostFundManagement.Domain.Models;
public sealed class AuditChanges
{
public string[]? Logs { get; set; }
}
+2 -1
View File
@@ -12,7 +12,8 @@ public class AuditLog
public string? Action { get; set; }
public string[]? Changes { get; set; }
[NotMapped]
public AuditChanges? Changes { get; set; }
public Guid PerformedBy { get; set; }
@@ -4,6 +4,8 @@ public class Beneficiary
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public Guid UserId { get; set; }
@@ -4,6 +4,8 @@ public class Budget
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public Guid CreatedBy { get; set; }
@@ -4,6 +4,8 @@ public class ChangeRequest
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public string? Title { get; set; }
@@ -4,6 +4,8 @@ public class ComplianceItem
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public string? Title { get; set; }
@@ -4,6 +4,8 @@ public class Contract
{
public long Id { get; set; }
public long TenantId { get; set; }
public long AwardId { get; set; }
public string? ExternalSignatureId { get; set; }
@@ -4,6 +4,8 @@ public class Disbursement
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public long? MilestoneId { get; set; }
@@ -4,6 +4,8 @@ public class Evidence
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public long MilestoneId { get; set; }
@@ -4,6 +4,8 @@ public class Indicator
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public Guid CreatedBy { get; set; }
@@ -4,6 +4,8 @@ public class Instrument
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProgrammeId { get; set; }
public string? Code { get; set; }
@@ -4,6 +4,8 @@ public class Invite
{
public long Id { get; set; }
public long TenantId { get; set; }
public long OrganisationId { get; set; }
public long InvitedOrganisationId { get; set; }
@@ -4,6 +4,8 @@ public class Issue
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public string? Title { get; set; }
@@ -4,6 +4,8 @@ public class Milestone
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public Guid CreatedBy { get; set; }
+2
View File
@@ -4,6 +4,8 @@ public class Risk
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public Guid CreatedBy { get; set; }
+2
View File
@@ -4,6 +4,8 @@ public class Rule
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProgrammeId { get; set; }
public Guid CreatedBy { get; set; }
@@ -4,6 +4,8 @@ public class SiteVisit
{
public long Id { get; set; }
public long TenantId { get; set; }
public long ProjectId { get; set; }
public DateTime VisitedAt { get; set; }