Stable multitenancy
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user