Skip to content

Commit

Permalink
Merge pull request #35 from CEDStandards/develop
Browse files Browse the repository at this point in the history
V11.0.0.0 Release Candidate
  • Loading branch information
aemnathanclinton committed Aug 18, 2023
2 parents 5e4ec71 + 1414a31 commit 67b6882
Show file tree
Hide file tree
Showing 374 changed files with 360,289 additions and 689,467 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/res/Thumbs.db
/res/Thumbs.db
/.vs
/src/CEDS-Data-Warehouse-Project/bin
/src/CEDS-Data-Warehouse-Project/obj/debug
6 changes: 4 additions & 2 deletions Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ Before CEPI, the [Center for the Integration of IDEA Data](https://ciidta.grads3
Version 9.1.0.0 was updated primarily based on work done through the CEDS Data Warehouse Expansion Project (https://ceds.communities.ed.gov/#communities/ceds-osc/workgroups/ceds-dw-expansion)
Contributions from [The Colorado Department of Education](https://www.cde.state.co.us/) and [Michigan's Center for Educational Performance and Infomration (CEPI)](https://www.michigan.gov/cepi/) resulted in additions and insight into the special education and adult education use cases. Additionally [Double Line](https://wearedoubleline.com/) assisted in the build out of the metadata tagging you will find in the dimension tables. Search the extended properties of the Dimension tables to find the associated CEDS element information. Numerous other stakeholders from state education agencies, local education agencies and the vendor community contributed through participation in meetings throughout the project and providing insight into the special education and adult education use cases that made up the scope of the project. It is the CEDS community of stakeholders that make all of this possible.

Version 10.0.0.0 contains contributions from [Michigan's Center for Educational Performance and Infomration (CEPI)](https://www.michigan.gov/cepi/) as well as improved alignment to standard naming conventions and expansion of the metadata tagging in extended properties and increased population of the junk dimension tables.
Version 10.0.0.0 contains contributions from [Michigan's Center for Educational Performance and Infomration (CEPI)](https://www.michigan.gov/cepi/) as well as improved alignment to standard naming conventions and expansion of the metadata tagging in extended properties and increased population of the junk dimension tables.

CEDS is continuing to work with stakeholders to continue expansion of the Data Warehouse. The next version is expected to contain tables related to finace data with contributions from Maine, Missouri, and Michigan as well as many other stakeholders. The CEDS team is excited to continue to partner with you, the community, in this new era.
Version 11.0.0.0 contains contributions from [Maine Department of Education](https://www.maine.gov/doe/home), [Mississippi Department of Education](https://www.mdek12.org/), [Michigan's Center for Educational Performance and Infomration (CEPI)](https://www.michigan.gov/cepi/), and The [Center for the Integration of IDEA Data](https://ciidta.grads360.org/#program) (CIID), as well as numerous other stakeholders who participate in the CEDS Open Source Community.

CEDS is continuing to work with stakeholders to continue expansion of the Data Warehouse. The CEDS team is excited to continue to partner with you, the community, in this new era.



Expand Down
Binary file added doc/CEDS DW Version 10.0.0.0 to 10.0.1.0.xlsx
Binary file not shown.
Binary file added doc/CEDS DW Version 10.0.0.0 to 11.0.0.0.xlsx
Binary file not shown.
Binary file removed doc/CEDS DW Version 9.0.0.0 to 9.1.0.0.xlsx
Binary file not shown.
Binary file removed doc/CEDS DW Version 9.1.0.0 to 10.0.0.0.xlsx
Binary file not shown.
Binary file not shown.
Binary file removed doc/CEDS Data Warehouse Bus Architecture.xlsx
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build">
<Sdk Name="Microsoft.Build.Sql" Version="0.1.9-preview" />
<PropertyGroup>
<Name>CEDS-Data-Warehouse-Project</Name>
<ProjectGuid>{58743D1F-1C2C-4278-9E86-DB7E0B17BF8A}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql150DatabaseSchemaProvider</DSP>
<ModelCollation>1033, CI</ModelCollation>
</PropertyGroup>
<ItemGroup>
<Folder Include="Security" />
</ItemGroup>
<ItemGroup>
<ArtifactReference Include="$(DacPacRootPath)\Extensions\Microsoft\SQLDB\Extensions\SqlServer\150\SqlSchemas\master.dacpac" Condition="'$(NetCoreBuild)' != 'true'">
<SuppressMissingDependenciesErrors>False</SuppressMissingDependenciesErrors>
<DatabaseVariableLiteralValue>master</DatabaseVariableLiteralValue>
</ArtifactReference>
<ArtifactReference Include="$(SystemDacpacsLocation)\SystemDacpacs\150\master.dacpac" Condition="'$(NetCoreBuild)' == 'true'">
<SuppressMissingDependenciesErrors>False</SuppressMissingDependenciesErrors>
<DatabaseVariableLiteralValue>master</DatabaseVariableLiteralValue>
</ArtifactReference>
</ItemGroup>
<Target Name="BeforeBuild">
<Delete Files="$(BaseIntermediateOutputPath)\project.assets.json" />
</Target>
</Project>
16 changes: 16 additions & 0 deletions src/CEDS-Data-Warehouse-Project/RDS/Functions/Get_Age.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CREATE FUNCTION [RDS].[Get_Age](
@birthDate DATETIME = NULL
, @asOfDate DATETIME = NULL
) RETURNS INT

BEGIN
RETURN
CASE
WHEN @birthDate IS NULL THEN -1
WHEN (CONVERT(INT,CONVERT(char(8), ISNULL(@asOfDate, GETDATE()),112))-CONVERT(char(8), ISNULL(@birthDate, GETDATE()),112))/10000 <= 0 THEN -1
ELSE CONVERT(VARCHAR(5), (CONVERT(INT,CONVERT(char(8), ISNULL(@asOfDate, GETDATE()),112))-CONVERT(char(8), ISNULL(@birthDate, GETDATE()),112))/10000)
END
END

GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeAeStudentEnrollmentRaces] (
[BridgeFactAeStudentEnrollmentRaceId] INT IDENTITY (1, 1) NOT NULL,
[FactAeStudentEnrollmentId] INT NOT NULL,
[RaceId] INT NOT NULL,
CONSTRAINT [PK_BridgeAeStudentEnrollmentRaces] PRIMARY KEY CLUSTERED ([BridgeFactAeStudentEnrollmentRaceId] ASC),
CONSTRAINT [FK_BridgeAeStudentEnrollmentRaces_FactAeStudentEnrollmentId] FOREIGN KEY ([FactAeStudentEnrollmentId]) REFERENCES [RDS].[FactAeStudentEnrollments] ([FactAeStudentEnrollmentId]),
CONSTRAINT [FK_BridgeAeStudentEnrollmentRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeAeStudentEnrollmentRaces_FactAeStudentEnrollmentId]
ON [RDS].[BridgeAeStudentEnrollmentRaces]([FactAeStudentEnrollmentId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeAeStudentEnrollmentRaces_RaceId]
ON [RDS].[BridgeAeStudentEnrollmentRaces]([RaceId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12ProgramParticipationRaces] (
[BridgeK12ProgramParticipationId] BIGINT IDENTITY (1, 1) NOT NULL,
[FactK12ProgramParticipationId] BIGINT CONSTRAINT [DF_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipationId] DEFAULT ((-1)) NOT NULL,
[RaceId] INT CONSTRAINT [DF_BridgeK12ProgramParticipationRaces_RaceId] DEFAULT ((-1)) NOT NULL,
CONSTRAINT [PK_BridgeK12ProgramParticipations] PRIMARY KEY CLUSTERED ([BridgeK12ProgramParticipationId] ASC) WITH (DATA_COMPRESSION = PAGE),
CONSTRAINT [FK_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipations] FOREIGN KEY ([FactK12ProgramParticipationId]) REFERENCES [RDS].[FactK12ProgramParticipations] ([FactK12ProgramParticipationId]),
CONSTRAINT [FK_BridgeK12ProgramParticipationRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipations]
ON [RDS].[BridgeK12ProgramParticipationRaces]([FactK12ProgramParticipationId] ASC) WITH (DATA_COMPRESSION = PAGE);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12ProgramParticipationRaces_RaceId]
ON [RDS].[BridgeK12ProgramParticipationRaces]([RaceId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CREATE TABLE [RDS].[BridgeK12SchoolGradeLevels] (
[BridgeK12SchoolGradeLevelId] INT IDENTITY (1,1) NOT NULL,
[K12SchoolId] INT CONSTRAINT [DF_BridgeK12SchoolGradeLevels_K12SchoolId] DEFAULT ((-1)) NOT NULL,
[GradeLevelId] INT CONSTRAINT [DF_BridgeK12SchoolGradeLevels_GradeLevelId] DEFAULT ((-1)) NOT NULL,
CONSTRAINT [PK_BridgeK12SchoolGradeLevels] PRIMARY KEY CLUSTERED ([BridgeK12SchoolGradeLevelId] ASC),
CONSTRAINT [FK_BridgeK12SchoolGradeLevels_GradeLevelId] FOREIGN KEY ([GradeLevelId]) REFERENCES [RDS].[DimGradeLevels] ([DimGradeLevelId]),
CONSTRAINT [FK_BridgeK12SchoolGradeLevels_K12SchoolId] FOREIGN KEY ([K12SchoolId]) REFERENCES [RDS].[DimK12Schools] ([DimK12SchoolId])
);
GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12SchoolGradeLevels_DimK12Schools]
ON [RDS].[BridgeK12SchoolGradeLevels]([K12SchoolId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12SchoolGradeLevels_GradeLevelId]
ON [RDS].[BridgeK12SchoolGradeLevels]([GradeLevelId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE);
GO
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentAssessmentAccommodations] (
[FactK12StudentAssessmentAccommodationId] INT IDENTITY (1, 1) NOT NULL,
[FactK12StudentAssessmentId] INT CONSTRAINT [DF_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId] DEFAULT ((-1)) NOT NULL,
[AssessmentAccommodationId] INT CONSTRAINT [DF_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId] DEFAULT ((-1)) NOT NULL,
CONSTRAINT [PK_BridgeK12StudentAssessmentAccommodations] PRIMARY KEY CLUSTERED ([FactK12StudentAssessmentAccommodationId] ASC),
CONSTRAINT [FK_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId] FOREIGN KEY ([AssessmentAccommodationId]) REFERENCES [RDS].[DimAssessmentAccommodations] ([DimAssessmentAccommodationId]),
CONSTRAINT [FK_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId] FOREIGN KEY ([FactK12StudentAssessmentId]) REFERENCES [RDS].[FactK12StudentAssessments] ([FactK12StudentAssessmentId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId]
ON [RDS].[BridgeK12StudentAssessmentAccommodations]([FactK12StudentAssessmentId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId]
ON [RDS].[BridgeK12StudentAssessmentAccommodations]([AssessmentAccommodationId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentAssessmentRaces] (
[BridgeK12StudentAssessmentRaceId] INT IDENTITY (1, 1) NOT NULL,
[FactK12StudentAssessmentId] INT NOT NULL,
[RaceId] INT NOT NULL,
CONSTRAINT [PK_BridgeK12StudentAssessmentRaces] PRIMARY KEY CLUSTERED ([BridgeK12StudentAssessmentRaceId] ASC) WITH (FILLFACTOR = 80),
CONSTRAINT [FK_BridgeK12StudentAssessmentRaces_FactK12StudentAssessments] FOREIGN KEY ([FactK12StudentAssessmentId]) REFERENCES [RDS].[FactK12StudentAssessments] ([FactK12StudentAssessmentId]),
CONSTRAINT [FK_BridgeK12StudentAssessmentRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentRaces_RaceId]
ON [RDS].[BridgeK12StudentAssessmentRaces]([RaceId] ASC) WITH (FILLFACTOR = 80);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentRaces_FactK12StudentAssessments]
ON [RDS].[BridgeK12StudentAssessmentRaces]([FactK12StudentAssessmentId] ASC) WITH (FILLFACTOR = 80);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionK12Staff] (
[BridgeK12StudentCourseSectionK12StaffId] INT IDENTITY (1, 1) NOT NULL,
[K12StaffId] BIGINT CONSTRAINT [DF_CONSTRAINT [DF_BridgeK12StudentCourseSectionK12Staff_K12StaffId] DEFAULT ((-1)) NOT NULL,
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_CONSTRAINT [DF_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL,
[TeacherOfRecord] BIT NULL,
CONSTRAINT [PK_BridgeK12StudentCourseSectionK12Staff] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionK12StaffId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE),
CONSTRAINT [FK_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId]),
CONSTRAINT [FK_BridgeK12StudentCourseSectionK12Staff_K12Staff] FOREIGN KEY ([K12StaffId]) REFERENCES [RDS].[DimPeople] ([DimPersonId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionK12Staff_K12StaffId]
ON [RDS].[BridgeK12StudentCourseSectionK12Staff]([K12StaffId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSections]
ON [RDS].[BridgeK12StudentCourseSectionK12Staff]([FactK12StudentCourseSectionId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE);


GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'See the CEDS_GlobalId, CEDS_Element, CEDS_URL, and CEDS_Def_Desc extended properties.' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord';
GO
EXEC sys.sp_addextendedproperty @name=N'CEDS_Def_Desc', @value=N'Staff member who has a Teacher of Record responsibility for a Class Section based upon the state''s definition of Teacher of Record.' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord';
GO
EXEC sys.sp_addextendedproperty @name=N'CEDS_Element', @value=N'Teacher of Record' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord';
GO
EXEC sys.sp_addextendedproperty @name=N'CEDS_GlobalId', @value=N'000647' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord';
GO
EXEC sys.sp_addextendedproperty @name=N'CEDS_URL', @value=N'https://ceds.ed.gov/CEDSElementDetails.aspx?TermId=21649' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord';
GO
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionRaces] (
[BridgeK12StudentCourseSectionRaceId] BIGINT IDENTITY (1, 1) NOT NULL,
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_BridgeK12StudentCourseSectionRaces_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL,
[RaceId] INT CONSTRAINT [DF_BridgeK12StudentCourseSectionRaces_RaceId] DEFAULT ((-1)) NOT NULL,
CONSTRAINT [PK_BridgeK12StudentCourseSectionRace] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionRaceId] ASC),
CONSTRAINT [FK_BridgeK12StudentCourseSectionRace_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId]),
CONSTRAINT [FK_BridgeK12StudentCourseSectionRace_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionRaces_RaceId]
ON [RDS].[BridgeK12StudentCourseSectionRaces]([RaceId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionRaces_FactK12StudentCourseSectionId]
ON [RDS].[BridgeK12StudentCourseSectionRaces]([FactK12StudentCourseSectionId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionsCipCodes] (
[BridgeK12StudentCourseSectionsCipCodeId] BIGINT IDENTITY (1, 1) NOT NULL,
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_BridgeK12StudentCourseSectionsCipCodes_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL,
[CipCodeId] INT CONSTRAINT [DF_BridgeK12StudentCourseSectionsCipCodes_CipCodeId] DEFAULT ((-1)) NOT NULL,
CONSTRAINT [PK_BridgeK12StudentCourseSectionsCipCodes] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionsCipCodeId] ASC),
CONSTRAINT [FK_BridgeK12StudentCourseSectionsCipCodes_CipCodeId] FOREIGN KEY ([CipCodeId]) REFERENCES [RDS].[DimCipCodes] ([DimCipCodeId]),
CONSTRAINT [FK_BridgeK12StudentCourseSectionsCipCodes_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionsCipCodes_FactK12CourseSection]
ON [RDS].[BridgeK12StudentCourseSectionsCipCodes]([FactK12StudentCourseSectionId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionsCipCodes_CipCodeId]
ON [RDS].[BridgeK12StudentCourseSectionsCipCodes]([CipCodeId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentDisciplineDiscplineReasons] (
[BridgeK12StudentDisciplineDiscplineReasonId] INT IDENTITY (1, 1) NOT NULL,
[FactK12StudentDisciplineId] INT NULL,
[DisciplineReasonId] INT NULL,
CONSTRAINT [PK_BridgeK12StudentDisciplineDiscplineReasonId] PRIMARY KEY CLUSTERED ([BridgeK12StudentDisciplineDiscplineReasonId] ASC),
CONSTRAINT [FK_BridgeK12StudentDisciplineDiscplineReasons_DimDisciplineReasons] FOREIGN KEY ([DisciplineReasonId]) REFERENCES [RDS].[DimDisciplineReasons] ([DimDisciplineReasonId]),
CONSTRAINT [FK_BridgeK12StudentDisciplineDiscplineReasons_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDiscplineReasons_DimDisciplineReasons]
ON [RDS].[BridgeK12StudentDisciplineDiscplineReasons]([DisciplineReasonId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDiscplineReasons_FactK12StudentDisciplines]
ON [RDS].[BridgeK12StudentDisciplineDiscplineReasons]([FactK12StudentDisciplineId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes] (
[BridgeK12StudentDisciplineIdeaDisabilityTypeId] INT IDENTITY (1, 1) NOT NULL,
[IdeaDisabilityTypeId] INT NULL,
[FactK12StudentDisciplineId] INT NULL,
CONSTRAINT [PK_BridgeK12StudentDisciplineIdeaDisabilityTypeId] PRIMARY KEY NONCLUSTERED ([BridgeK12StudentDisciplineIdeaDisabilityTypeId] ASC),
CONSTRAINT [FK_BridgeK12StudentDisciplineIdeaDisabilityTypes_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId]),
CONSTRAINT [FK_BridgeK12StudentDisciplineIdeaDisabilityTypes_IdeaDisabilityTypeId] FOREIGN KEY ([IdeaDisabilityTypeId]) REFERENCES [RDS].[DimIdeaDisabilityTypes] ([DimIdeaDisabilityTypeId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDisabilityTypes_DimIdeaDisabilityTypes]
ON [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes]([IdeaDisabilityTypeId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDisabilityTypes_FactK12StudentDisciplines]
ON [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes]([FactK12StudentDisciplineId] ASC);


GO

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE [RDS].[BridgeK12StudentDisciplineIncidentBehaviors] (
[BridgeK12StudentDisciplineIncidentBehaviorId] INT IDENTITY (1, 1) NOT NULL,
[FactK12StudentDisciplineId] INT NULL,
[IncidentBehaviorId] INT NULL,
CONSTRAINT [PK_BridgeK12StudentDisciplineIncidentBehaviorId] PRIMARY KEY CLUSTERED ([BridgeK12StudentDisciplineIncidentBehaviorId] ASC),
CONSTRAINT [FK_BridgeK12StudentDisciplineIncidentBehaviors_DimIncidentBehaviors] FOREIGN KEY ([IncidentBehaviorId]) REFERENCES [RDS].[DimIncidentBehaviors] ([DimIncidentBehaviorId]),
CONSTRAINT [FK_BridgeK12StudentDisciplineIncidentBehaviors_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId])
);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineIncidentBehaviors_FactK12StudentDisciplines]
ON [RDS].[BridgeK12StudentDisciplineIncidentBehaviors]([FactK12StudentDisciplineId] ASC);


GO

CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineIncidentBehaviors_DimIncidentBehaviors]
ON [RDS].[BridgeK12StudentDisciplineIncidentBehaviors]([IncidentBehaviorId] ASC);


GO

Loading

0 comments on commit 67b6882

Please sign in to comment.