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

TTV model update 3.9.2024. First DB scaffold using EFCore tools 8 #148

Merged
merged 1 commit into from
Sep 3, 2024
Merged
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
9,011 changes: 4,050 additions & 4,961 deletions aspnetcore/src/DatabaseContext/ApiDbContext.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrDatasetDatasetRelationship
{
public int DimResearchDatasetId { get; set; }
public int DimResearchDatasetId2 { get; set; }
public string? Type { get; set; }

public virtual DimResearchDataset DimResearchDataset { get; set; } = null!;
public virtual DimResearchDataset DimResearchDatasetId2Navigation { get; set; } = null!;
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrDatasetDatasetRelationship
{
public int DimResearchDatasetId { get; set; }

public int DimResearchDatasetId2 { get; set; }

public string? Type { get; set; }

public virtual DimResearchDataset DimResearchDataset { get; set; } = null!;

public virtual DimResearchDataset DimResearchDatasetId2Navigation { get; set; } = null!;
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
using System;
using System.Collections.Generic;
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrFundingConsortiumParticipation
{
public int DimFundingDecisionId { get; set; }
public int DimOrganizationid { get; set; }
public string? RoleInConsortium { get; set; }
public decimal? ShareOfFundingInEur { get; set; }
public bool? EndOfParticipation { get; set; }
namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrFundingConsortiumParticipation
{
public int DimFundingDecisionId { get; set; }

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;
public virtual DimOrganization DimOrganization { get; set; } = null!;
}
}
public int DimOrganizationid { get; set; }

public string? RoleInConsortium { get; set; }

public decimal? ShareOfFundingInEur { get; set; }

public bool? EndOfParticipation { get; set; }

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;

public virtual DimOrganization DimOrganization { get; set; } = null!;
}
31 changes: 17 additions & 14 deletions aspnetcore/src/DatabaseContext/Entities/BrGrantedPermission.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
using System;
using System.Collections.Generic;
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrGrantedPermission
{
public int DimUserProfileId { get; set; }
public int DimExternalServiceId { get; set; }
public int DimPermittedFieldGroup { get; set; }
namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrGrantedPermission
{
public int DimUserProfileId { get; set; }

public virtual DimPurpose DimExternalService { get; set; } = null!;
public virtual DimReferencedatum DimPermittedFieldGroupNavigation { get; set; } = null!;
public virtual DimUserProfile DimUserProfile { get; set; } = null!;
}
}
public int DimExternalServiceId { get; set; }

public int DimPermittedFieldGroup { get; set; }

public virtual DimPurpose DimExternalService { get; set; } = null!;

public virtual DimReferencedatum DimPermittedFieldGroupNavigation { get; set; } = null!;

public virtual DimUserProfile DimUserProfile { get; set; } = null!;
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrParticipatesInFundingGroup
{
public int DimFundingDecisionid { get; set; }
public int DimNameId { get; set; }
public int DimOrganizationId { get; set; }
public string? RoleInFundingGroup { get; set; }
public decimal? ShareOfFundingInEur { get; set; }
public string? SourceId { get; set; }
public bool? EndOfParticipation { get; set; }

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;
public virtual DimName DimName { get; set; } = null!;
public virtual DimOrganization DimOrganization { get; set; } = null!;
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrParticipatesInFundingGroup
{
public int DimFundingDecisionid { get; set; }

public int DimNameId { get; set; }

public int DimOrganizationId { get; set; }

public string? RoleInFundingGroup { get; set; }

public decimal? ShareOfFundingInEur { get; set; }

public string? SourceId { get; set; }

public bool? EndOfParticipation { get; set; }

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;

public virtual DimName DimName { get; set; } = null!;

public virtual DimOrganization DimOrganization { get; set; } = null!;
}
29 changes: 15 additions & 14 deletions aspnetcore/src/DatabaseContext/Entities/BrServiceSubscription.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrServiceSubscription
{
public int DimUserProfileId { get; set; }
public int DimExternalServiceId { get; set; }

public virtual DimExternalService DimExternalService { get; set; } = null!;
public virtual DimUserProfile DimUserProfile { get; set; } = null!;
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrServiceSubscription
{
public int DimUserProfileId { get; set; }

public int DimExternalServiceId { get; set; }

public virtual DimExternalService DimExternalService { get; set; } = null!;

public virtual DimUserProfile DimUserProfile { get; set; } = null!;
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrWordClusterDimFundingDecision
{
public int DimWordClusterId { get; set; }
public int DimFundingDecisionId { get; set; }
public string? SourceDescription { get; set; }
public DateTime? Created { get; set; }
public DateTime? Modified { get; set; }
public string SourceId { get; set; } = null!;

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;
public virtual DimWordCluster DimWordCluster { get; set; } = null!;
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrWordClusterDimFundingDecision
{
public int DimWordClusterId { get; set; }

public int DimFundingDecisionId { get; set; }

public string? SourceDescription { get; set; }

public DateTime? Created { get; set; }

public DateTime? Modified { get; set; }

public string SourceId { get; set; } = null!;

public virtual DimFundingDecision DimFundingDecision { get; set; } = null!;

public virtual DimWordCluster DimWordCluster { get; set; } = null!;
}
41 changes: 23 additions & 18 deletions aspnetcore/src/DatabaseContext/Entities/BrWordsDefineACluster.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class BrWordsDefineACluster
{
public int DimMinedWordsId { get; set; }
public int DimWordClusterId { get; set; }
public string? SourceDescription { get; set; }
public DateTime? Created { get; set; }
public DateTime? Modified { get; set; }
public string SourceId { get; set; } = null!;

public virtual DimMinedWord DimMinedWords { get; set; } = null!;
public virtual DimWordCluster DimWordCluster { get; set; } = null!;
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class BrWordsDefineACluster
{
public int DimMinedWordsId { get; set; }

public int DimWordClusterId { get; set; }

public string? SourceDescription { get; set; }

public DateTime? Created { get; set; }

public DateTime? Modified { get; set; }

public string SourceId { get; set; } = null!;

public virtual DimMinedWord DimMinedWords { get; set; } = null!;

public virtual DimWordCluster DimWordCluster { get; set; } = null!;
}
97 changes: 57 additions & 40 deletions aspnetcore/src/DatabaseContext/Entities/DimAffiliation.cs
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities
{
public partial class DimAffiliation
{
public DimAffiliation()
{
FactFieldValues = new HashSet<FactFieldValue>();
}

public int Id { get; set; }
public int DimKnownPersonId { get; set; }
public int DimOrganizationId { get; set; }
public int StartDate { get; set; }
public int? EndDate { get; set; }
public int? PositionCode { get; set; }
public string? PositionNameFi { get; set; }
public string? PositionNameEn { get; set; }
public string? PositionNameSv { get; set; }
public string? SourceDescription { get; set; }
public string SourceId { get; set; } = null!;
public DateTime? Created { get; set; }
public DateTime? Modified { get; set; }
public int DimRegisteredDataSourceId { get; set; }
public string? LocalIdentifier { get; set; }
public string? AffiliationTypeFi { get; set; }
public string? AffiliationTypeEn { get; set; }
public string? AffiliationTypeSv { get; set; }

public virtual DimKnownPerson DimKnownPerson { get; set; } = null!;
public virtual DimOrganization DimOrganization { get; set; } = null!;
public virtual DimRegisteredDataSource DimRegisteredDataSource { get; set; } = null!;
public virtual DimDate? EndDateNavigation { get; set; }
public virtual DimReferencedatum? PositionCodeNavigation { get; set; }
public virtual DimDate StartDateNavigation { get; set; } = null!;
public virtual ICollection<FactFieldValue> FactFieldValues { get; set; }
}
}
using System;
using System.Collections.Generic;

namespace CSC.PublicApi.DatabaseContext.Entities;

public partial class DimAffiliation
{
public int Id { get; set; }

public int DimKnownPersonId { get; set; }

public int DimOrganizationId { get; set; }

public int StartDate { get; set; }

public int? EndDate { get; set; }

public int? PositionCode { get; set; }

public string? PositionNameFi { get; set; }

public string? PositionNameEn { get; set; }

public string? PositionNameSv { get; set; }

public string? SourceDescription { get; set; }

public string SourceId { get; set; } = null!;

public DateTime? Created { get; set; }

public DateTime? Modified { get; set; }

public int DimRegisteredDataSourceId { get; set; }

public string? LocalIdentifier { get; set; }

public string? AffiliationTypeFi { get; set; }

public string? AffiliationTypeEn { get; set; }

public string? AffiliationTypeSv { get; set; }

public virtual DimKnownPerson DimKnownPerson { get; set; } = null!;

public virtual DimOrganization DimOrganization { get; set; } = null!;

public virtual DimRegisteredDataSource DimRegisteredDataSource { get; set; } = null!;

public virtual DimDate? EndDateNavigation { get; set; }

public virtual ICollection<FactFieldValue> FactFieldValues { get; set; } = new List<FactFieldValue>();

public virtual DimReferencedatum? PositionCodeNavigation { get; set; }

public virtual DimDate StartDateNavigation { get; set; } = null!;
}
Loading
Loading