Skip to content

Commit 3657e02

Browse files
Added new fields and foreign key constraints to FactK12StaffAssignments for enhanced data tracking
1 parent 94aaa1b commit 3657e02

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/CEDS-Data-Warehouse-Project/RDS/Tables/FactK12StaffAssignments.sql

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ CREATE TABLE [RDS].[FactK12StaffAssignments]
3030
[DataCollectionId] int NULL,
3131
[LeaJobClassificationId] int NULL,
3232
[SeaJobClassificationId] int NULL,
33+
[JobPositionStatusDateId] int NULL,
34+
[AssignmentProgramTypeId] int NULL,
35+
[SeaFinancialExpenditureClassificationId] int NULL,
36+
[CharterSchoolAuthorizerId] int NULL,
37+
[CharterSchoolManagementOrganizationId] int NULL,
3338
[FullTimeEquivalency] decimal(3,2) NOT NULL,
3439
[K12StaffAssignmentCount] int NOT NULL,
3540
CONSTRAINT [PK_FactK12StaffAssignments] PRIMARY KEY CLUSTERED ([FactK12StaffAssignmentId] ASC),
@@ -61,7 +66,12 @@ CREATE TABLE [RDS].[FactK12StaffAssignments]
6166
CONSTRAINT [FK_FactK12StaffAssignments_SchoolYearId] FOREIGN KEY ([SchoolYearId]) REFERENCES [RDS].[DimSchoolYears] ([DimSchoolYearId]) ON DELETE No Action ON UPDATE No Action,
6267
CONSTRAINT [FK_FactK12StaffAssignments_SeaId] FOREIGN KEY ([SeaId]) REFERENCES [RDS].[DimSeas] ([DimSeaId]) ON DELETE No Action ON UPDATE No Action,
6368
CONSTRAINT [FK_FactK12StaffAssignments_IeuEmployerId] FOREIGN KEY ([IeuEmployerId]) REFERENCES [RDS].[DimIeus] ([DimIeuId]) ON DELETE No Action ON UPDATE No Action,
64-
CONSTRAINT [FK_FactK12StaffAssignments_LeaEmployerId] FOREIGN KEY ([LeaEmployerId]) REFERENCES [RDS].[DimLeas] ([DimLeaId]) ON DELETE No Action ON UPDATE No Action
69+
CONSTRAINT [FK_FactK12StaffAssignments_LeaEmployerId] FOREIGN KEY ([LeaEmployerId]) REFERENCES [RDS].[DimLeas] ([DimLeaId]) ON DELETE No Action ON UPDATE No Action,
70+
CONSTRAINT [FK_FactK12StaffAssignments_JobPositionStatusDateId] FOREIGN KEY ([JobPositionStatusDateId]) REFERENCES [RDS].[DimDates] ([DimDateId]) ON DELETE No Action ON UPDATE No Action,
71+
CONSTRAINT [FK_FactK12StaffAssignments_AssignmentProgramTypeId] FOREIGN KEY ([AssignmentProgramTypeId]) REFERENCES [RDS].[DimProgramTypes] ([DimProgramTypeId]) ON DELETE No Action ON UPDATE No Action,
72+
CONSTRAINT [FK_FactK12StaffAssignments_SeaFinancialExpenditureClassificationId] FOREIGN KEY ([SeaFinancialExpenditureClassificationId]) REFERENCES [RDS].[DimSeaFinancialExpenditureClassifications] ([DimSeaFinancialExpenditureClassificationId]) ON DELETE No Action ON UPDATE No Action,
73+
CONSTRAINT [FK_FactK12StaffAssignments_CharterSchoolAuthorizerId] FOREIGN KEY ([CharterSchoolAuthorizerId]) REFERENCES [RDS].[DimCharterSchoolAuthorizers] ([DimCharterSchoolAuthorizerId]) ON DELETE No Action ON UPDATE No Action,
74+
CONSTRAINT [FK_FactK12StaffAssignments_CharterSchoolManagementOrganizationId] FOREIGN KEY ([CharterSchoolManagementOrganizationId]) REFERENCES [RDS].[DimCharterSchoolManagementOrganizations] ([DimCharterSchoolManagementOrganizationId]) ON DELETE No Action ON UPDATE No Action
6575
)
6676
GO
6777

0 commit comments

Comments
 (0)