Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(external-personnel): Remove contract related entites from database #612

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/backend/api/Fusion.Resources.Database/Entities/DbContract.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class DbProject
public string? DomainId { get; set; }
public Guid OrgProjectId { get; set; }
public string? State { get; set; }
public ICollection<DbContract> Contracts { get; set; } = null!;
}


Expand Down
18 changes: 0 additions & 18 deletions src/backend/api/Fusion.Resources.Database/ResourcesDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public ResourcesDbContext(DbContextOptions<ResourcesDbContext> options, ISqlAuth
}

public DbSet<DbPerson> Persons { get; set; }
public DbSet<DbContract> Contracts { get; set; }
public DbSet<DbProject> Projects { get; set; }
public DbSet<DbRequestComment> RequestComments { get; set; }
public DbSet<DbResourceAllocationRequest> ResourceAllocationRequests { get; set; }
Expand All @@ -38,16 +37,6 @@ public ResourcesDbContext(DbContextOptions<ResourcesDbContext> options, ISqlAuth
public DbSet<DbDelegatedDepartmentResponsible> DelegatedDepartmentResponsibles { get; set; }
public DbSet<DbDelegatedDepartmentResponsibleHistory> DelegatedDepartmentResponsiblesHistory { get; set; }


#region Moved to Contract Personnel. Only here for historical reasons
public DbSet<DbContractPersonnelReplacement> ContractPersonnelReplacementChanges { get; set; }
public DbSet<DbContractPersonnel> ContractPersonnel { get; set; }
public DbSet<DbContractorRequest> ContractorRequests { get; set; }
public DbSet<DbExternalPersonnelPerson> ExternalPersonnel { get; set; }
public DbSet<DbDelegatedRole> DelegatedRoles { get; set; }
#endregion


protected override void OnModelCreating(ModelBuilder modelBuilder)
{
DbWorkflow.OnModelCreating(modelBuilder);
Expand All @@ -60,19 +49,12 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
DbResourceAllocationRequest.OnModelCreating(modelBuilder);
DbRequestAction.OnModelCreating(modelBuilder);
DbConversationMessage.OnModelCreating(modelBuilder);
DbContractPersonnelReplacement.OnModelCreating(modelBuilder);
DbSharedRequest.OnModelCreating(modelBuilder);
DbSecondOpinionPrompt.OnModelCreating(modelBuilder);
DbSecondOpinionResponse.OnModelCreating(modelBuilder);

#region Moved to Contract Personnel. Only here for historical reasons
DbContractPersonnel.OnModelCreating(modelBuilder);
DbContractorRequest.OnModelCreating(modelBuilder);
DbExternalPersonnelPerson.OnModelCreating(modelBuilder);
DbDelegatedRole.OnModelCreating(modelBuilder);
DbDelegatedDepartmentResponsible.OnModelCreating(modelBuilder);
DbDelegatedDepartmentResponsibleHistory.OnModelCreating(modelBuilder);
#endregion
}

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
Expand Down
Loading