This commit is contained in:
Zeeshaun
2026-04-07 14:21:04 -05:00
parent e37826fe30
commit 75ea216a17
264 changed files with 15920 additions and 0 deletions
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Operations Version="1.0" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
<Operation Name="Rename Refactor" Key="840136d7-fe6a-4a91-97a7-b4d13f456fad" ChangeDateTime="07/10/2023 21:37:39">
<Property Name="ElementName" Value="[dbo].[Rate].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[Rate]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="RateId" />
</Operation>
<Operation Name="Rename Refactor" Key="8b3e7902-f7f7-4b43-a633-45e3c21bbf92" ChangeDateTime="07/10/2023 21:40:04">
<Property Name="ElementName" Value="[dbo].[RateEvaluation].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[RateEvaluation]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="RateEvaluationId" />
</Operation>
<Operation Name="Rename Refactor" Key="ab70b9be-f04c-40af-80e1-5ee232d4fa9f" ChangeDateTime="07/10/2023 22:06:21">
<Property Name="ElementName" Value="[dbo].[RateEvaluation].[EvaluationId]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[RateEvaluation]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="EvaluationItemIdId" />
</Operation>
<Operation Name="Rename Refactor" Key="40e4b922-5939-4ba4-8f57-401c3cde46d4" ChangeDateTime="07/10/2023 22:06:24">
<Property Name="ElementName" Value="[dbo].[RateEvaluation].[EvaluationItemIdId]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[RateEvaluation]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="EvaluationItemId" />
</Operation>
<Operation Name="Rename Refactor" Key="17c2b5d6-b45b-4694-9afd-5c1c63403019" ChangeDateTime="07/11/2023 13:02:02">
<Property Name="ElementName" Value="[dbo].[RateEvaluation].[EvaluationItemId]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[RateEvaluation]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="EvaluationDetailId" />
</Operation>
</Operations>
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Name>LCU.API.Internal.LoanRateSql</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{33cbc5ad-1b92-4d5f-a79f-4464c79c5f0c}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql130DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>LCU.API.Internal.LoanRateSql</RootNamespace>
<AssemblyName>LCU.API.Internal.LoanRateSql</AssemblyName>
<ModelCollation>1033, CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetLanguage>CS</TargetLanguage>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<!-- Default to the v11.0 targets path if the targets file for the current VS version is not found -->
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
<VisualStudioVersion Condition="'$(SSDTExists)' == ''">11.0</VisualStudioVersion>
</PropertyGroup>
<Import Condition="'$(SQLDBExtensionsRefPath)' != ''" Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<ItemGroup>
<Folder Include="Properties" />
</ItemGroup>
<ItemGroup>
<Build Include="RateSheet.sql" />
<Build Include="RateSheetCell.sql" />
<Build Include="RateUploadInfo.sql" />
<Build Include="Rate.sql" />
<Build Include="RateEvaluation.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="LCU.API.Internal.LoanRateSql.refactorlog" />
</ItemGroup>
<ItemGroup>
<ArtifactReference Include="..\LCU.API.Internal.LoanRate\bin\$(Configuration)\LCU.Library.Internal.LcuEvaluationSql.dacpac">
<HintPath>..\LCU.API.Internal.LoanRate\bin\Debug\LCU.Library.Internal.LcuEvaluationSql.dacpac</HintPath>
<SuppressMissingDependenciesErrors>False</SuppressMissingDependenciesErrors>
</ArtifactReference>
</ItemGroup>
</Project>
@@ -0,0 +1,15 @@
CREATE TABLE [dbo].[Rate]
(
[RateId] INT NOT NULL PRIMARY KEY IDENTITY,
[RateUploadInfoId] INT NULL,
[ClosingRateUploadInfoId] INT NULL,
[Column] VARCHAR(50) NULL,
[Row] VARCHAR(50) NULL,
[RateSheetId] INT NOT NULL,
[Value] DECIMAL(18, 3) NOT NULL,
[RateStartDate] DATETIME2 NOT NULL,
[RateEndDate] DATETIME2 NULL,
CONSTRAINT [FK_Rate_RateUploadInfo] FOREIGN KEY ([RateUploadInfoId]) REFERENCES [RateUploadInfo]([RateUploadInfoId]),
CONSTRAINT [FK_Rate_ClosingRateUploadInfo] FOREIGN KEY ([ClosingRateUploadInfoId]) REFERENCES [RateUploadInfo]([RateUploadInfoId]),
CONSTRAINT [FK_Rate_RateSheet] FOREIGN KEY ([RateSheetId]) REFERENCES [RateSheet]([RateSheetId])
)
@@ -0,0 +1,8 @@
CREATE TABLE [dbo].[RateEvaluation]
(
[RateEvaluationId] INT NOT NULL PRIMARY KEY IDENTITY,
[RateId] INT NOT NULL,
[EvaluationDetailId] INT NOT NULL,
CONSTRAINT [FK_RateEvaluation_Rate] FOREIGN KEY ([RateId]) REFERENCES [Rate]([RateId]),
CONSTRAINT [FK_RateEvaluation_EvaluationDetail] FOREIGN KEY ([EvaluationDetailId]) REFERENCES [EvaluationDetail]([EvaluationDetailId])
)
@@ -0,0 +1,7 @@
CREATE TABLE [dbo].[RateSheet]
(
[RateSheetId] INT NOT NULL PRIMARY KEY IDENTITY,
[RateType] INT NOT NULL,
[TimeCreated] DATETIME2 NOT NULL,
[CreatedBy] VARCHAR(500) NOT NULL
)
@@ -0,0 +1,12 @@
CREATE TABLE [dbo].[RateSheetCell]
(
[RateSheetCellId] INT NOT NULL PRIMARY KEY IDENTITY,
[RateSheetId] INT NOT NULL,
[Column] VARCHAR(50) NOT NULL,
[ColumnSpan] INT NULL,
[Row] VARCHAR(50) NOT NULL,
[RowSpan] INT NULL,
[Value] VARCHAR(500) NOT NULL,
[RateSheetCellType] INT NOT NULL
CONSTRAINT [FK_RateSheet_RateSheetCell] FOREIGN KEY ([RateSheetId]) REFERENCES [RateSheet]([RateSheetId])
)
@@ -0,0 +1,10 @@
CREATE TABLE [dbo].[RateUploadInfo]
(
[RateUploadInfoId] INT NOT NULL PRIMARY KEY IDENTITY,
[Version] INT NOT NULL,
[Filename] VARCHAR(1000) NOT NULL,
[EffectiveDate] DATETIME2 NOT NULL,
[TimeCreated] DATETIME2 NOT NULL,
[CreatedBy] VARCHAR(500) NOT NULL,
[RateCount] INT NOT NULL DEFAULT 0
)