visualbasic/migration #1
@ -1,74 +0,0 @@
|
||||
# Requires -RunAsAdministrator
|
||||
|
||||
function Write-Status($Message, $Type = "Info") {
|
||||
switch ($Type) {
|
||||
"Info" { $Color = "White" }
|
||||
"Success" { $Color = "Green" }
|
||||
"Error" { $Color = "Red" }
|
||||
"Warning" { $Color = "Yellow" }
|
||||
}
|
||||
Write-Host ">>> $Message" -ForegroundColor $Color
|
||||
}
|
||||
|
||||
# Check if running as Administrator
|
||||
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
|
||||
if (-not $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||
Write-Status "This script must be run as Administrator" "Error"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
try {
|
||||
# Install Windows features required for Docker
|
||||
Write-Status "Installing required Windows features..." "Info"
|
||||
Enable-WindowsOptionalFeature -Online -FeatureName containers -All -NoRestart
|
||||
|
||||
# Download Docker Engine
|
||||
Write-Status "Downloading Docker Engine..." "Info"
|
||||
$dockerUrl = "https://download.docker.com/win/static/stable/x86_64/docker-24.0.7.zip"
|
||||
$dockerZip = "$env:TEMP\docker.zip"
|
||||
$dockerPath = "C:\Program Files\Docker"
|
||||
|
||||
Invoke-WebRequest -Uri $dockerUrl -OutFile $dockerZip
|
||||
|
||||
# Extract Docker Engine
|
||||
Write-Status "Extracting Docker Engine..." "Info"
|
||||
Expand-Archive -Path $dockerZip -DestinationPath $env:ProgramFiles -Force
|
||||
Remove-Item $dockerZip -Force
|
||||
|
||||
# Add Docker to PATH
|
||||
Write-Status "Adding Docker to PATH..." "Info"
|
||||
$oldPath = [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine)
|
||||
if (-not $oldPath.Contains($dockerPath)) {
|
||||
$newPath = "$oldPath;$dockerPath"
|
||||
[Environment]::SetEnvironmentVariable("Path", $newPath, [EnvironmentVariableTarget]::Machine)
|
||||
}
|
||||
|
||||
# Create Docker service
|
||||
Write-Status "Creating Docker service..." "Info"
|
||||
& "$dockerPath\dockerd.exe" --register-service
|
||||
|
||||
# Start Docker service
|
||||
Write-Status "Starting Docker service..." "Info"
|
||||
Start-Service docker
|
||||
|
||||
# Test Docker installation
|
||||
Write-Status "Testing Docker installation..." "Info"
|
||||
docker version
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Status "Docker Engine installed successfully!" "Success"
|
||||
} else {
|
||||
Write-Status "Docker installation completed but service test failed" "Warning"
|
||||
}
|
||||
|
||||
# Pull SQL Server image
|
||||
Write-Status "Pulling SQL Server image..." "Info"
|
||||
docker pull mcr.microsoft.com/mssql/server:2022-latest
|
||||
|
||||
Write-Status "`nDocker Engine installation completed!" "Success"
|
||||
Write-Status "You can now use Docker commands directly." "Info"
|
||||
Write-Status "Please restart your computer to ensure all changes take effect." "Warning"
|
||||
|
||||
} catch {
|
||||
Write-Status "An error occurred: $_" "Error"
|
||||
Exit 1
|
||||
}
|
||||
@ -1,126 +0,0 @@
|
||||
# Requires -RunAsAdministrator
|
||||
|
||||
function Write-Status($Message, $Type = "Info") {
|
||||
switch ($Type) {
|
||||
"Info" { $Color = "White" }
|
||||
"Success" { $Color = "Green" }
|
||||
"Error" { $Color = "Red" }
|
||||
"Warning" { $Color = "Yellow" }
|
||||
}
|
||||
Write-Host ">>> $Message" -ForegroundColor $Color
|
||||
}
|
||||
|
||||
# Check if running as Administrator
|
||||
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
|
||||
if (-not $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
|
||||
Write-Status "This script must be run as Administrator" "Error"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
try {
|
||||
# Stop Docker containers
|
||||
Write-Status "Stopping Docker containers..." "Info"
|
||||
$containers = docker ps -aq
|
||||
if ($containers) {
|
||||
docker stop $containers
|
||||
Write-Status "All containers stopped" "Success"
|
||||
} else {
|
||||
Write-Status "No running containers found" "Info"
|
||||
}
|
||||
|
||||
# Remove Docker containers
|
||||
Write-Status "Removing Docker containers..." "Info"
|
||||
$containers = docker ps -aq
|
||||
if ($containers) {
|
||||
docker rm $containers
|
||||
Write-Status "All containers removed" "Success"
|
||||
} else {
|
||||
Write-Status "No containers to remove" "Info"
|
||||
}
|
||||
|
||||
# Remove Docker images
|
||||
Write-Status "Removing Docker images..." "Info"
|
||||
$images = docker images -aq
|
||||
if ($images) {
|
||||
docker rmi -f $images
|
||||
Write-Status "All images removed" "Success"
|
||||
} else {
|
||||
Write-Status "No images to remove" "Info"
|
||||
}
|
||||
|
||||
# Stop Docker service
|
||||
Write-Status "Stopping Docker service..." "Info"
|
||||
$dockerService = Get-Service -Name "com.docker.service" -ErrorAction SilentlyContinue
|
||||
if ($dockerService) {
|
||||
Stop-Service "com.docker.service" -Force
|
||||
Write-Status "Docker service stopped" "Success"
|
||||
} else {
|
||||
Write-Status "Docker service not found" "Info"
|
||||
}
|
||||
|
||||
# Remove Docker Desktop
|
||||
Write-Status "Uninstalling Docker Desktop..." "Info"
|
||||
$dockerDesktop = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "*Docker Desktop*" }
|
||||
if ($dockerDesktop) {
|
||||
$dockerDesktop.Uninstall()
|
||||
Write-Status "Docker Desktop uninstalled" "Success"
|
||||
} else {
|
||||
Write-Status "Docker Desktop not found in installed programs" "Info"
|
||||
}
|
||||
|
||||
# Clean up Docker data directories
|
||||
$directories = @(
|
||||
"$env:ProgramData\Docker",
|
||||
"$env:APPDATA\Docker",
|
||||
"$env:LOCALAPPDATA\Docker"
|
||||
)
|
||||
|
||||
foreach ($dir in $directories) {
|
||||
if (Test-Path $dir) {
|
||||
Write-Status "Removing $dir..." "Info"
|
||||
Remove-Item -Path $dir -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Write-Status "$dir removed" "Success"
|
||||
}
|
||||
}
|
||||
|
||||
# Remove environment variables
|
||||
Write-Status "Cleaning up environment variables..." "Info"
|
||||
$dockerEnvVars = @(
|
||||
'DOCKER_HOST',
|
||||
'DOCKER_TLS_VERIFY',
|
||||
'DOCKER_CERT_PATH',
|
||||
'DOCKER_CONFIG',
|
||||
'DOCKER_CONTEXT'
|
||||
)
|
||||
|
||||
foreach ($var in $dockerEnvVars) {
|
||||
if (Test-Path env:$var) {
|
||||
Remove-Item env:$var -ErrorAction SilentlyContinue
|
||||
[System.Environment]::SetEnvironmentVariable($var, $null, 'User')
|
||||
[System.Environment]::SetEnvironmentVariable($var, $null, 'Machine')
|
||||
Write-Status "Removed environment variable: $var" "Success"
|
||||
}
|
||||
}
|
||||
|
||||
# Clean up registry entries
|
||||
Write-Status "Cleaning up registry entries..." "Info"
|
||||
$registryPaths = @(
|
||||
'HKCU:\Software\Docker Inc.',
|
||||
'HKLM:\Software\Docker Inc.'
|
||||
)
|
||||
|
||||
foreach ($path in $registryPaths) {
|
||||
if (Test-Path $path) {
|
||||
Remove-Item -Path $path -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Write-Status "Removed registry path: $path" "Success"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Status "Docker uninstallation completed successfully!" "Success"
|
||||
Write-Status "Please restart your computer to complete the cleanup." "Warning"
|
||||
|
||||
} catch {
|
||||
Write-Status "An error occurred during uninstallation: $_" "Error"
|
||||
Write-Status "Please try to finish the cleanup manually" "Warning"
|
||||
Exit 1
|
||||
}
|
||||
22
ef-migration/Strata.Code.sln
Normal file
22
ef-migration/Strata.Code.sln
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31903.59
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Strata.Code.DataAccess", "src\Strata.Code.DataAccess\Strata.Code.DataAccess.csproj", "{C27AA99E-EEC0-41FE-B949-F4EEED1F3952}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C27AA99E-EEC0-41FE-B949-F4EEED1F3952}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C27AA99E-EEC0-41FE-B949-F4EEED1F3952}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C27AA99E-EEC0-41FE-B949-F4EEED1F3952}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C27AA99E-EEC0-41FE-B949-F4EEED1F3952}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
283
ef-migration/readme.md
Normal file
283
ef-migration/readme.md
Normal file
@ -0,0 +1,283 @@
|
||||
# Entity Framework Database-First Setup Guide
|
||||
|
||||
## Project Structure
|
||||
Your solution should follow this structure for optimal organization:
|
||||
|
||||
```
|
||||
YourSolution/
|
||||
├── src/
|
||||
│ ├── YourProject/
|
||||
│ │ ├── Controllers/
|
||||
│ │ ├── Models/ <- Scaffolded models will go here
|
||||
│ │ └── Data/ <- DbContext will go here
|
||||
├── tests/
|
||||
│ └── YourProject.Tests/
|
||||
├── tools/
|
||||
│ └── scaffold.bat <- Place scaffolding script here
|
||||
└── YourSolution.sln
|
||||
```
|
||||
|
||||
Alternative structure with scripts directory:
|
||||
```
|
||||
YourSolution/
|
||||
├── src/
|
||||
│ ├── YourProject/
|
||||
│ │ ├── Controllers/
|
||||
│ │ ├── Models/
|
||||
│ │ └── Data/
|
||||
├── tests/
|
||||
│ └── YourProject.Tests/
|
||||
├── scripts/
|
||||
│ ├── database/
|
||||
│ │ └── scaffold.bat <- Or place it here
|
||||
│ └── other-scripts/
|
||||
└── YourSolution.sln
|
||||
```
|
||||
|
||||
To run the scaffold script:
|
||||
|
||||
Method 1 (From project directory):
|
||||
1. Open command prompt
|
||||
2. Navigate to project directory: `cd src/YourProject`
|
||||
3. Run: `../../tools/scaffold.bat`
|
||||
|
||||
Method 2 (From any directory):
|
||||
Update your scaffold.bat to include the project path:
|
||||
```bat
|
||||
@echo off
|
||||
cd ../src/YourProject
|
||||
dotnet ef dbcontext scaffold ^
|
||||
"Your_Connection_String" ^
|
||||
Microsoft.EntityFrameworkCore.SqlServer ^
|
||||
--project YourProject.csproj ^
|
||||
[rest of your options]
|
||||
pause
|
||||
```
|
||||
|
||||
Note: Make sure your project has all required EF Core packages installed:
|
||||
```xml
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0" />
|
||||
</ItemGroup>
|
||||
```
|
||||
|
||||
This guide explains how to set up Entity Framework Core using a database-first approach for specific tables in the OnePlan database.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
Before starting, ensure you have:
|
||||
|
||||
1. .NET SDK installed
|
||||
2. Entity Framework Core tools installed globally:
|
||||
```bash
|
||||
dotnet tool install --global dotnet-ef
|
||||
```
|
||||
|
||||
3. Required NuGet packages in your project:
|
||||
```bash
|
||||
dotnet add package Microsoft.EntityFrameworkCore.Design
|
||||
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
|
||||
dotnet add package Microsoft.EntityFrameworkCore.Tools
|
||||
```
|
||||
|
||||
## Scaffolding Process
|
||||
|
||||
### Step 1: Create a Scaffold Script
|
||||
|
||||
Create a file named `scaffold.bat` in your `tools` directory with the following content:
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
cd ../src/YourProject
|
||||
dotnet ef dbcontext scaffold ^
|
||||
"Server=your_server;Database=your_database;User=your_user;Password=your_password;TrustServerCertificate=True;Encrypt=True;" ^
|
||||
Microsoft.EntityFrameworkCore.SqlServer ^
|
||||
--project YourProject.csproj ^
|
||||
--context-dir Data ^
|
||||
--output-dir Models ^
|
||||
--context OnePlanDbContext ^
|
||||
--force ^
|
||||
--data-annotations ^
|
||||
--no-onconfiguring ^
|
||||
--no-connection-string ^
|
||||
-t fp.AddProviderEncountersDataForCharges ^
|
||||
-t fp.AddProviderSummary ^
|
||||
-t fp.AdjustmentChunkingConfiguration ^
|
||||
-t fp.APEDepartmentWorkflowStatus ^
|
||||
-t fp.APEWorkflow ^
|
||||
-t fp.BenefitsSpreads ^
|
||||
-t fp.BudgetConfig ^
|
||||
-t fp.BudgetConfigDefaultSetting ^
|
||||
-t fp.BudgetConfigSetting ^
|
||||
-t fp.BudgetRefreshRequest ^
|
||||
-t fp.BudgetRefreshRequestHistory ^
|
||||
-t fp.ChargeVolumeAddProviderAdjustment ^
|
||||
-t fp.ChargeVolumeSpreads ^
|
||||
-t fp.DataRefreshTargetThreshold ^
|
||||
-t fp.DepartmentChargeVolumeAdjustment ^
|
||||
-t fp.DepartmentConfig ^
|
||||
-t fp.DimCategory ^
|
||||
-t fw.DimDepartment ^
|
||||
-t dss.DimPhysician ^
|
||||
-t fp.EngineLog ^
|
||||
-t fp.EntityGroupConfig ^
|
||||
-t fp.FixChangeHistoryRequest ^
|
||||
-t fp.GeneralLedger ^
|
||||
-t fp.GeneralLedgerInitialPlanConfigDetail ^
|
||||
-t fp.GeneralLedgerSpreads ^
|
||||
-t fp.InitialPlanRule ^
|
||||
-t dbo.LOCK ^
|
||||
-t dbo.log ^
|
||||
-t dbo.OnePlanPerformanceTestHistory ^
|
||||
-t fp.OnePlanPerformanceTestValidationResult ^
|
||||
-t fp.PerformanceTestingSetting ^
|
||||
-t fp.ProviderCompensationSpreads ^
|
||||
-t fp.SamplingLog ^
|
||||
-t fp.ScheduledRefreshRequest ^
|
||||
-t fp.ServiceLineEncounterSpreads ^
|
||||
-t fp.SettingCategory ^
|
||||
-t fp.SpreadHistory ^
|
||||
-t fp.StaffingInitialPlanConfigDetail ^
|
||||
-t fp.StaffingSpreads ^
|
||||
-t fp.StatisticsSpreads ^
|
||||
-t fp.SystemSetting ^
|
||||
-t dbo.TEScheduledTask ^
|
||||
-t dbo.UserProfile ^
|
||||
-t fp.viewBenefitsAdjustment ^
|
||||
-t fp.viewDepartmentChargeVolumeAdjustment ^
|
||||
-t fp.viewGeneralLedgerAdjustment ^
|
||||
-t fp.viewReimbursementAdjustment ^
|
||||
-t fp.viewReimbursementGeneralLedgerAdjustment ^
|
||||
-t fp.viewServiceLineEncounterAdjustment ^
|
||||
-t fp.viewStaffingAdjustment ^
|
||||
-t fp.viewStatisticsAdjustment
|
||||
pause
|
||||
```
|
||||
|
||||
To run the scaffold script:
|
||||
1. Open command prompt
|
||||
2. Navigate to solution root directory
|
||||
3. Run: `tools/scaffold.bat`
|
||||
|
||||
Note: Make sure your project has all required EF Core packages installed:
|
||||
```xml
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0" />
|
||||
</ItemGroup>
|
||||
```
|
||||
|
||||
### Step 2: Configure Connection String
|
||||
|
||||
After scaffolding, configure your connection string in `appsettings.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=your_server;Database=your_database;User=your_user;Password=your_password;TrustServerCertificate=True;Encrypt=True;"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Step 3: Configure DbContext
|
||||
|
||||
In your `Program.cs` or `Startup.cs`:
|
||||
|
||||
```csharp
|
||||
builder.Services.AddDbContext<OnePlanDbContext>(options =>
|
||||
options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));
|
||||
```
|
||||
|
||||
## Command Line Parameters Explained
|
||||
|
||||
- `--context-dir Data`: Places the DbContext in a Data folder
|
||||
- `--output-dir Models`: Places entity classes in a Models folder
|
||||
- `--force`: Overwrites existing files
|
||||
- `--data-annotations`: Uses attributes instead of fluent API
|
||||
- `--no-onconfiguring`: Skips generating the OnConfiguring method
|
||||
- `--no-connection-string`: Prevents connection string from being scaffolded into DbContext
|
||||
|
||||
## Schema Organization
|
||||
|
||||
The tables are organized across multiple schemas:
|
||||
- `fp`: Financial Planning schema (majority of tables)
|
||||
- `dbo`: Database Owner schema
|
||||
- `dss`: Decision Support System schema
|
||||
- `fw`: Framework schema
|
||||
|
||||
## Best Practices
|
||||
|
||||
1. Always scaffold all related tables together to maintain proper relationships
|
||||
2. Keep connection strings in configuration, not in code
|
||||
3. Use dependency injection for DbContext
|
||||
4. Consider using separate configuration classes for complex entity configurations
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
If you encounter SSL/TLS warnings, ensure your connection string includes:
|
||||
- `TrustServerCertificate=True`
|
||||
- `Encrypt=True`
|
||||
|
||||
For Docker connections, use:
|
||||
- `Server=localhost,1433` (adjust port as needed)
|
||||
- Ensure the container is running and accessible
|
||||
|
||||
## DbContext Organization
|
||||
|
||||
You have two main approaches for organizing your DbContext:
|
||||
|
||||
1. **Single DbContext (Recommended for this project)**
|
||||
```csharp
|
||||
public class OnePlanDbContext : DbContext
|
||||
{
|
||||
// All tables from all schemas
|
||||
public DbSet<BudgetConfig> BudgetConfigs { get; set; }
|
||||
public DbSet<DimDepartment> DimDepartments { get; set; }
|
||||
// ... etc for all tables
|
||||
}
|
||||
```
|
||||
|
||||
Advantages:
|
||||
- Simpler to manage
|
||||
- All relationships maintained automatically
|
||||
- Better for cross-schema transactions
|
||||
- Easier to maintain data consistency
|
||||
- Single dependency to inject
|
||||
|
||||
2. **Multiple DbContexts by Schema**
|
||||
```csharp
|
||||
public class FinancialPlanningDbContext : DbContext
|
||||
{
|
||||
// Only fp schema tables
|
||||
public DbSet<BudgetConfig> BudgetConfigs { get; set; }
|
||||
}
|
||||
|
||||
public class FrameworkDbContext : DbContext
|
||||
{
|
||||
// Only fw schema tables
|
||||
public DbSet<DimDepartment> DimDepartments { get; set; }
|
||||
}
|
||||
```
|
||||
|
||||
Advantages:
|
||||
- Better separation of concerns
|
||||
- More focused contexts
|
||||
- Can be more performant for specific schema operations
|
||||
- Better for microservices architecture
|
||||
|
||||
For this project, the single DbContext approach is recommended due to:
|
||||
- Highly interconnected tables
|
||||
- Cross-schema queries
|
||||
- Views joining data across schemas
|
||||
- Coherent domain model around financial planning
|
||||
|
||||
## Notes
|
||||
|
||||
- Views are included in the scaffold and will be read-only
|
||||
- The scaffold includes all specified tables across multiple schemas
|
||||
- Relationships between tables will be automatically mapped
|
||||
- Generated models will be placed in the Models directory
|
||||
- DbContext will be placed in the Data directory
|
||||
6
ef-migration/src/Strata.Code.DataAccess/Class1.cs
Normal file
6
ef-migration/src/Strata.Code.DataAccess/Class1.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Strata.Code.DataAccess;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
794
ef-migration/src/Strata.Code.DataAccess/Data/OnePlanDbContext.cs
Normal file
794
ef-migration/src/Strata.Code.DataAccess/Data/OnePlanDbContext.cs
Normal file
@ -0,0 +1,794 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Strata.Code.DataAccess.Models;
|
||||
using Lock = Strata.Code.DataAccess.Models.Lock;
|
||||
|
||||
namespace Strata.Code.DataAccess.Data;
|
||||
|
||||
public partial class OnePlanDbContext : DbContext
|
||||
{
|
||||
public OnePlanDbContext(DbContextOptions<OnePlanDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<AddProviderEncountersDataForCharge> AddProviderEncountersDataForCharges { get; set; }
|
||||
|
||||
public virtual DbSet<AddProviderSummary> AddProviderSummaries { get; set; }
|
||||
|
||||
public virtual DbSet<AdjustmentChunkingConfiguration> AdjustmentChunkingConfigurations { get; set; }
|
||||
|
||||
public virtual DbSet<ApedepartmentWorkflowStatus> ApedepartmentWorkflowStatuses { get; set; }
|
||||
|
||||
public virtual DbSet<Apeworkflow> Apeworkflows { get; set; }
|
||||
|
||||
public virtual DbSet<BenefitsSpread> BenefitsSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<BudgetConfig> BudgetConfigs { get; set; }
|
||||
|
||||
public virtual DbSet<BudgetConfigDefaultSetting> BudgetConfigDefaultSettings { get; set; }
|
||||
|
||||
public virtual DbSet<BudgetConfigSetting> BudgetConfigSettings { get; set; }
|
||||
|
||||
public virtual DbSet<BudgetRefreshRequest> BudgetRefreshRequests { get; set; }
|
||||
|
||||
public virtual DbSet<BudgetRefreshRequestHistory> BudgetRefreshRequestHistories { get; set; }
|
||||
|
||||
public virtual DbSet<ChargeVolumeAddProviderAdjustment> ChargeVolumeAddProviderAdjustments { get; set; }
|
||||
|
||||
public virtual DbSet<ChargeVolumeSpread> ChargeVolumeSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<DataRefreshTargetThreshold> DataRefreshTargetThresholds { get; set; }
|
||||
|
||||
public virtual DbSet<DepartmentChargeVolumeAdjustment> DepartmentChargeVolumeAdjustments { get; set; }
|
||||
|
||||
public virtual DbSet<DepartmentConfig> DepartmentConfigs { get; set; }
|
||||
|
||||
public virtual DbSet<DimCategory> DimCategories { get; set; }
|
||||
|
||||
public virtual DbSet<DimDepartment> DimDepartments { get; set; }
|
||||
|
||||
public virtual DbSet<EngineLog> EngineLogs { get; set; }
|
||||
|
||||
public virtual DbSet<EntityGroupConfig> EntityGroupConfigs { get; set; }
|
||||
|
||||
public virtual DbSet<FixChangeHistoryRequest> FixChangeHistoryRequests { get; set; }
|
||||
|
||||
public virtual DbSet<GeneralLedger> GeneralLedgers { get; set; }
|
||||
|
||||
public virtual DbSet<GeneralLedgerInitialPlanConfigDetail> GeneralLedgerInitialPlanConfigDetails { get; set; }
|
||||
|
||||
public virtual DbSet<GeneralLedgerSpread> GeneralLedgerSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<InitialPlanRule> InitialPlanRules { get; set; }
|
||||
|
||||
public virtual DbSet<Lock> Locks { get; set; }
|
||||
|
||||
public virtual DbSet<OnePlanPerformanceTestValidationResult> OnePlanPerformanceTestValidationResults { get; set; }
|
||||
|
||||
public virtual DbSet<PerformanceTestingSetting> PerformanceTestingSettings { get; set; }
|
||||
|
||||
public virtual DbSet<ProviderCompensationSpread> ProviderCompensationSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<SamplingLog> SamplingLogs { get; set; }
|
||||
|
||||
public virtual DbSet<ScheduledRefreshRequest> ScheduledRefreshRequests { get; set; }
|
||||
|
||||
public virtual DbSet<ServiceLineEncounterSpread> ServiceLineEncounterSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<SettingCategory> SettingCategories { get; set; }
|
||||
|
||||
public virtual DbSet<SpreadHistory> SpreadHistories { get; set; }
|
||||
|
||||
public virtual DbSet<StaffingInitialPlanConfigDetail> StaffingInitialPlanConfigDetails { get; set; }
|
||||
|
||||
public virtual DbSet<StaffingSpread> StaffingSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<StatisticsSpread> StatisticsSpreads { get; set; }
|
||||
|
||||
public virtual DbSet<SystemSetting> SystemSettings { get; set; }
|
||||
|
||||
public virtual DbSet<TescheduledTask> TescheduledTasks { get; set; }
|
||||
|
||||
public virtual DbSet<UserProfile> UserProfiles { get; set; }
|
||||
|
||||
public virtual DbSet<ViewReimbursementAdjustment> ViewReimbursementAdjustments { get; set; }
|
||||
|
||||
public virtual DbSet<ViewStaffingAdjustment> ViewStaffingAdjustments { get; set; }
|
||||
|
||||
public virtual DbSet<ViewStatisticsAdjustment> ViewStatisticsAdjustments { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<AddProviderEncountersDataForCharge>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.AddProviderEncountersDataForChargesId).HasName("PK__AddProvi__E4129B703B27669A");
|
||||
|
||||
entity.Property(e => e.AddProviderEncountersDataForChargesId).ValueGeneratedNever();
|
||||
entity.Property(e => e.AdjustmentGuid).HasDefaultValueSql("(newid())");
|
||||
|
||||
entity.HasOne(d => d.Adjustment).WithMany(p => p.AddProviderEncountersDataForCharges)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__AddProvid__Adjus__6B6F9474");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<AddProviderSummary>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SummaryId).HasName("PK__AddProvi__DAB10E0F746AF6DC");
|
||||
|
||||
entity.Property(e => e.SummaryId).ValueGeneratedNever();
|
||||
entity.Property(e => e.BenchmarkProvidersJson).HasDefaultValue("");
|
||||
entity.Property(e => e.Comment).HasDefaultValue("");
|
||||
entity.Property(e => e.StartDateUtc).HasDefaultValueSql("(getdate())");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<AdjustmentChunkingConfiguration>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SectionId).HasName("PK__Adjustme__80EF0892617FCD5C");
|
||||
|
||||
entity.Property(e => e.Description).HasDefaultValueSql("((0))");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ApedepartmentWorkflowStatus>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.DepartmentWorkflowStatusId).HasName("PK__APEDepar__30315255363CAB35");
|
||||
|
||||
entity.Property(e => e.DepartmentWorkflowStatusId).ValueGeneratedNever();
|
||||
entity.Property(e => e.EnteredStepDateTimeUtc).HasDefaultValueSql("(getutcdate())");
|
||||
|
||||
entity.HasOne(d => d.WorkflowStep).WithMany(p => p.ApedepartmentWorkflowStatuses)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__APEDepart__Workf__0232CC71");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Apeworkflow>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.WorkflowStepId).HasName("PK__APEWorkf__361214019DCA4D7C");
|
||||
|
||||
entity.Property(e => e.WorkflowStepId).ValueGeneratedNever();
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BenefitsSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.DepartmentId, e.AccountId }).HasName("PK__Benefits__F1B9F395006A0F0D");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.BenefitsSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpBenefitsSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BudgetConfig>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.BudgetConfigGuid).HasName("PK__BudgetCo__4ED93B3C311E4EB0");
|
||||
|
||||
entity.Property(e => e.BudgetConfigGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AllowLocalAdminAddAccountMyBudgets).HasDefaultValue(true);
|
||||
entity.Property(e => e.AllowLocalAdminAddAccountPlanEditor).HasDefaultValue(true);
|
||||
entity.Property(e => e.AllowLocalAdminAddEmpAddFteplanEditor).HasDefaultValue(true);
|
||||
entity.Property(e => e.AllowLocalAdminAddEmpAddJobCodeMyBudgets).HasDefaultValue(true);
|
||||
entity.Property(e => e.BudgetConfigName).HasDefaultValue("Default Budget");
|
||||
entity.Property(e => e.ChargeMasterConfigJson).HasDefaultValue("");
|
||||
entity.Property(e => e.Comments).HasDefaultValue("");
|
||||
entity.Property(e => e.CurrentBudgetPhaseId).HasDefaultValue((byte)2);
|
||||
entity.Property(e => e.DateModified).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DatePublished).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DefaultReimbursementProjectionMethodId).HasDefaultValue(1);
|
||||
entity.Property(e => e.IsChargeMasterRefreshedForDollarImpactReport).HasDefaultValue(true);
|
||||
entity.Property(e => e.IsGlbudgetHistoryAvailable).HasDefaultValue(true);
|
||||
entity.Property(e => e.IsOverUnderFundedUsed).HasDefaultValue(true);
|
||||
entity.Property(e => e.IsRestrictDepartmentAccess).HasDefaultValue(true);
|
||||
entity.Property(e => e.IsStaffingBudgetHistoryAvailable).HasDefaultValue(true);
|
||||
entity.Property(e => e.IsTargetingEmailEnabled).HasDefaultValue(true);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BudgetConfigDefaultSetting>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SettingId).HasName("PK__BudgetCo__54372AFD9588A33A");
|
||||
|
||||
entity.Property(e => e.SettingId).ValueGeneratedNever();
|
||||
entity.Property(e => e.DateCreated).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DefaultValue).HasDefaultValue(true);
|
||||
entity.Property(e => e.Description).HasDefaultValue("");
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BudgetConfigSetting>(entity =>
|
||||
{
|
||||
entity.HasOne(d => d.Setting).WithMany()
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__BudgetCon__Setti__3CD3D5C5");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BudgetRefreshRequest>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RequestGuid).HasName("PK__BudgetRe__2F8FD1AD6F774206");
|
||||
|
||||
entity.Property(e => e.RequestGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AffectedDepartments).HasDefaultValue("");
|
||||
entity.Property(e => e.CurrentDataRefreshMethod).HasDefaultValue("");
|
||||
entity.Property(e => e.DateEnded).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateEndedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateStarted).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateStartedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateTimeStamp).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DateTimeStampUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.EmailAddress).HasDefaultValue("");
|
||||
entity.Property(e => e.ErrorMessage).HasDefaultValue("");
|
||||
entity.Property(e => e.InitialSamplingJson).HasDefaultValue("");
|
||||
entity.Property(e => e.InitialSourceDimensionalityJson).HasDefaultValue("");
|
||||
entity.Property(e => e.SamplingJson).HasDefaultValue("");
|
||||
entity.Property(e => e.Source).HasDefaultValue("");
|
||||
entity.Property(e => e.SourceDimensionalityJson).HasDefaultValue("");
|
||||
entity.Property(e => e.StackTrace).HasDefaultValue("");
|
||||
entity.Property(e => e.UserName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<BudgetRefreshRequestHistory>(entity =>
|
||||
{
|
||||
entity.Property(e => e.AffectedDepartments).HasDefaultValue("");
|
||||
entity.Property(e => e.CanceledBy).HasDefaultValue("");
|
||||
entity.Property(e => e.DateEndedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateStartedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateTimeStampUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.InitialSamplingJson).HasDefaultValue("");
|
||||
entity.Property(e => e.InitialSourceDimensionalityJson).HasDefaultValue("");
|
||||
entity.Property(e => e.JazzVersion).HasDefaultValue("");
|
||||
entity.Property(e => e.SamplingJson).HasDefaultValue("");
|
||||
entity.Property(e => e.Source).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ChargeVolumeAddProviderAdjustment>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RowId).HasName("PK__ChargeVo__FFEE74512DFAE56C");
|
||||
|
||||
entity.Property(e => e.RowId).ValueGeneratedNever();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ChargeVolumeSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.DepartmentId, e.ServiceLineId, e.ChargeCodeId, e.PatientClassId, e.AgeCohortId, e.MedicalSurgicalId }).HasName("PK__ChargeVo__C17B5AD86F7201B4");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.ChargeVolumeSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpChargeVolumeSpreads_Department");
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.ChargeVolumeSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_ChargeVolumeSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DataRefreshTargetThreshold>(entity =>
|
||||
{
|
||||
entity.Property(e => e.ClassName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DepartmentChargeVolumeAdjustment>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.AdjustmentGuid).HasName("PK__Departme__7EE745958E5F2A5E");
|
||||
|
||||
entity.Property(e => e.AdjustmentGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AdjustedProperty).HasDefaultValue("");
|
||||
entity.Property(e => e.AdjustmentFilterJson).HasDefaultValue("");
|
||||
entity.Property(e => e.AuthorFullName).HasDefaultValue("");
|
||||
entity.Property(e => e.Comment).HasDefaultValue("");
|
||||
entity.Property(e => e.DateCreatedUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.DimensionMemberJson).HasDefaultValue("");
|
||||
entity.Property(e => e.GroupingHierarchyJson).HasDefaultValue("");
|
||||
entity.Property(e => e.LastModifiedDateUtc).HasDefaultValueSql("(getutcdate())");
|
||||
|
||||
entity.HasOne(d => d.BudgetConfig).WithMany(p => p.DepartmentChargeVolumeAdjustments)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__Departmen__Budge__49A9B822");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DepartmentConfig>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.DepartmentConfigGuid).HasName("PK__Departme__1D24F47EE8255C75");
|
||||
|
||||
entity.Property(e => e.DepartmentConfigGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.UpdatedDate).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.DepartmentConfigs)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__Departmen__Depar__2393C03C");
|
||||
|
||||
entity.HasOne(d => d.EntityGroupConfig).WithMany(p => p.DepartmentConfigs)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__Departmen__Entit__3983015B");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DimCategory>(entity =>
|
||||
{
|
||||
entity.Property(e => e.Category).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<DimDepartment>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.DepartmentId).HasName("PK__DimDepar__B2079BCDE1B9CD6D");
|
||||
|
||||
entity.Property(e => e.DepartmentId).ValueGeneratedNever();
|
||||
entity.Property(e => e.AttributionType).HasDefaultValue("");
|
||||
entity.Property(e => e.CareSetting).HasDefaultValue("");
|
||||
entity.Property(e => e.CompAnDepartment).HasDefaultValue("");
|
||||
entity.Property(e => e.ConsolidatedCode).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentCode).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentCodeRaw).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup1).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup1Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup2).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup2Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup3).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup3Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup4).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup4Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup5).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup5Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup6).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentRollup6Code).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentType).HasDefaultValue("");
|
||||
entity.Property(e => e.DepartmentTypeOld).HasDefaultValue("Not Specified");
|
||||
entity.Property(e => e.Description).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup1Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup2Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup3Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup4Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup5Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup6Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdepartmentRollup7Name).HasDefaultValue("");
|
||||
entity.Property(e => e.DssdeptGrouping).HasDefaultValue("");
|
||||
entity.Property(e => e.Entity).HasDefaultValue("");
|
||||
entity.Property(e => e.EntityCode).HasDefaultValue("");
|
||||
entity.Property(e => e.EntityTypeOverride).HasDefaultValue((short)-1);
|
||||
entity.Property(e => e.FunctionalArea).HasDefaultValue("");
|
||||
entity.Property(e => e.Fund).HasDefaultValue("");
|
||||
entity.Property(e => e.HomeDepartment).HasDefaultValue("");
|
||||
entity.Property(e => e.IsLrfp).HasDefaultValue(true);
|
||||
entity.Property(e => e.MemberGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.Mrdirector).HasDefaultValue("");
|
||||
entity.Property(e => e.Mrmanager).HasDefaultValue("");
|
||||
entity.Property(e => e.MrvicePresident).HasDefaultValue("");
|
||||
entity.Property(e => e.ObglobalStatisticsPlan).HasDefaultValue("");
|
||||
entity.Property(e => e.ObreimbursementPlan).HasDefaultValue("");
|
||||
entity.Property(e => e.ObserviceLinePlan).HasDefaultValue("");
|
||||
entity.Property(e => e.PatientTypeRollupName).HasDefaultValue("");
|
||||
entity.Property(e => e.ProductivityPercentile).HasDefaultValue("");
|
||||
entity.Property(e => e.Program).HasDefaultValue("");
|
||||
entity.Property(e => e.Project).HasDefaultValue("");
|
||||
entity.Property(e => e.ResearchDepartmentCategoryName).HasDefaultValue("");
|
||||
entity.Property(e => e.SpaccountRollupName).HasDefaultValue("");
|
||||
entity.Property(e => e.SpbalanceSheetPlanName).HasDefaultValue("");
|
||||
entity.Property(e => e.SphdepartmentName).HasDefaultValue("");
|
||||
entity.Property(e => e.SphdepartmentRollupName).HasDefaultValue("");
|
||||
entity.Property(e => e.SphdepartmentType).HasDefaultValue("");
|
||||
entity.Property(e => e.SpjobCodeGroupName).HasDefaultValue("");
|
||||
entity.Property(e => e.SpoperationsPlanName).HasDefaultValue("");
|
||||
entity.Property(e => e.SpphysicianGroupName).HasDefaultValue("");
|
||||
entity.Property(e => e.SprollingForecastPlanName).HasDefaultValue("");
|
||||
entity.Property(e => e.System).HasDefaultValue("");
|
||||
entity.Property(e => e.Version)
|
||||
.IsRowVersion()
|
||||
.IsConcurrencyToken();
|
||||
});
|
||||
|
||||
modelBuilder.Entity<EngineLog>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.RequestGuid, e.AttemptId, e.StepId }).HasName("PK__EngineLo__613A431601789AAF");
|
||||
|
||||
entity.Property(e => e.RequestGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AffectedDepartments).HasDefaultValue("");
|
||||
entity.Property(e => e.ClassName).HasDefaultValue("");
|
||||
entity.Property(e => e.DateEnded).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateStarted).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.ErrorMessage).HasDefaultValue("");
|
||||
entity.Property(e => e.OptionsJson).HasDefaultValue("");
|
||||
entity.Property(e => e.SourceDimensionalityJson).HasDefaultValue("");
|
||||
entity.Property(e => e.StackTrace).HasDefaultValue("");
|
||||
entity.Property(e => e.StepName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<EntityGroupConfig>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.EntityGroupConfigGuid).HasName("PK__EntityGr__1D36B145FC4497F8");
|
||||
|
||||
entity.Property(e => e.EntityGroupConfigGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AccountLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.BenefitsLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.Comments).HasDefaultValue("");
|
||||
entity.Property(e => e.DateModified).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DatePublished).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DepartmentChargeVolumeLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
entity.Property(e => e.PayrollLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.RevenueAndDeductionsLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.ServiceLineEncounterLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.StatisticsLastSampled).HasDefaultValue(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
});
|
||||
|
||||
modelBuilder.Entity<FixChangeHistoryRequest>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RequestGuid).HasName("PK__FixChang__2F8FD1AD343212A7");
|
||||
|
||||
entity.Property(e => e.RequestGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.DateCreatedUtc).HasDefaultValueSql("(getdate())");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<GeneralLedger>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.GeneralLedgerId).HasName("PK__GeneralL__9520696BDEB4E430");
|
||||
|
||||
entity.Property(e => e.GeneralLedgerId).ValueGeneratedNever();
|
||||
entity.Property(e => e.AddDate).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor01).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor02).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor03).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor04).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor05).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor06).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor07).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor08).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor09).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor10).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor11).HasDefaultValue(1m);
|
||||
entity.Property(e => e.BudgetPercentAdjustmentFactor12).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor01).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor02).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor03).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor04).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor05).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor06).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor07).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor08).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor09).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor10).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor11).HasDefaultValue(1m);
|
||||
entity.Property(e => e.ProjectionPercentAdjustmentFactor12).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor01).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor02).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor03).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor04).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor05).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor06).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor07).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor08).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor09).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor10).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor11).HasDefaultValue(1m);
|
||||
entity.Property(e => e.TargetPercentAdjustmentFactor12).HasDefaultValue(1m);
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.GeneralLedgers)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_GeneralLedger_Department");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<GeneralLedgerInitialPlanConfigDetail>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RowId).HasName("PK__GeneralL__FFEE7451BBA831F0");
|
||||
|
||||
entity.Property(e => e.RowId).ValueGeneratedNever();
|
||||
|
||||
entity.HasOne(d => d.BudgetConfig).WithMany(p => p.GeneralLedgerInitialPlanConfigDetails)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GeneralLe__Budge__34EBC896");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<GeneralLedgerSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.DepartmentId, e.AccountId }).HasName("PK__GeneralL__F1B9F3954D99BE3F");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.GeneralLedgerSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpGeneralLedgerSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<InitialPlanRule>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RowId).HasName("PK__InitialP__FFEE745128948D89");
|
||||
|
||||
entity.Property(e => e.RowId).ValueGeneratedNever();
|
||||
entity.Property(e => e.DimensionalityJson).HasDefaultValue("");
|
||||
entity.Property(e => e.VersionId).HasDefaultValue(0);
|
||||
|
||||
entity.HasOne(d => d.BudgetConfig).WithMany(p => p.InitialPlanRules)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__InitialPl__Budge__269DA93F");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Lock>(entity =>
|
||||
{
|
||||
entity.Property(e => e.DateLastActive).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DateLastActiveUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.DateLocked).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DateLockedUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.LockGroup).HasDefaultValue("");
|
||||
entity.Property(e => e.LockGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.UserName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<OnePlanPerformanceTestValidationResult>(entity =>
|
||||
{
|
||||
entity.Property(e => e.ColumnName).HasDefaultValue("");
|
||||
entity.Property(e => e.TableName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<PerformanceTestingSetting>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SystemSettingId).HasName("PK__Performa__0191E99DAC87483C");
|
||||
|
||||
entity.Property(e => e.SystemSettingId).ValueGeneratedNever();
|
||||
entity.Property(e => e.DateCreated).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DefaultValue).HasDefaultValue("");
|
||||
entity.Property(e => e.Description).HasDefaultValue("");
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
entity.Property(e => e.Value).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ProviderCompensationSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.ProviderId, e.ProviderLineItemId, e.DepartmentId, e.JobCodeId, e.PayCodeGroupId, e.UnitTypeId }).HasName("PK__Provider__7B156FC863658543");
|
||||
|
||||
entity.Property(e => e.UnitTypeId).HasDefaultValue((byte)34);
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.ProviderCompensationSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpProviderCompensationSpreads_Department");
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.ProviderCompensationSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_ProviderCompensationSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<SamplingLog>(entity =>
|
||||
{
|
||||
entity.Property(e => e.DateEndedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.DateStartedUtc).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.JazzVersion).HasDefaultValue("");
|
||||
entity.Property(e => e.SourceDimensionalityJson).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ScheduledRefreshRequest>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RequestGuid).HasName("PK__Schedule__2F8FD1AD3D1EE6FD");
|
||||
|
||||
entity.Property(e => e.RequestGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.SamplingJson).HasDefaultValue("");
|
||||
entity.Property(e => e.SourceDimensionalityJson).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ServiceLineEncounterSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.EntityId, e.ServiceLineId, e.PatientClassId }).HasName("PK__ServiceL__BC32EA931931BBFB");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.ServiceLineEncounterSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_ServiceLineEncounterSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<SpreadHistory>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SpreadHistoryGuid).HasName("PK__SpreadHi__3D43A8E02794F612");
|
||||
|
||||
entity.Property(e => e.AuthorFullName).HasDefaultValue("");
|
||||
entity.Property(e => e.Date).HasDefaultValueSql("(getdate())");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<StaffingInitialPlanConfigDetail>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.RowId).HasName("PK__Staffing__FFEE7451B817743E");
|
||||
|
||||
entity.Property(e => e.RowId).ValueGeneratedNever();
|
||||
|
||||
entity.HasOne(d => d.BudgetConfig).WithMany(p => p.StaffingInitialPlanConfigDetails)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__StaffingI__Budge__77ADB02C");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<StaffingSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.DepartmentId, e.JobCodeId, e.PayCodeGroupId }).HasName("PK__Staffing__6D5B21DD532F427F");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.StaffingSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpStaffingSpreads_Department");
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.StaffingSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_StaffingSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<StatisticsSpread>(entity =>
|
||||
{
|
||||
entity.HasKey(e => new { e.BudgetConfigId, e.DepartmentId, e.AccountId, e.ProviderId, e.ProviderLineItemId }).HasName("PK__Statisti__9854220EA98934E2");
|
||||
|
||||
entity.Property(e => e.GlobalSpreadId).HasDefaultValue(1);
|
||||
entity.Property(e => e.SpreadPercentage01).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage02).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage03).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage04).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage05).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage06).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage07).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage08).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage09).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage10).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage11).HasDefaultValue(0m);
|
||||
entity.Property(e => e.SpreadPercentage12).HasDefaultValue(0m);
|
||||
entity.Property(e => e.TotalImportedValue).HasDefaultValue(0m);
|
||||
|
||||
entity.HasOne(d => d.Department).WithMany(p => p.StatisticsSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_FpStatisticsSpreads_Department");
|
||||
|
||||
entity.HasOne(d => d.SpreadHistory).WithMany(p => p.StatisticsSpreads)
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK_StatisticsSpreads_History");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<SystemSetting>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.SystemSettingId).HasName("PK__SystemSe__0191E99D578204DD");
|
||||
|
||||
entity.Property(e => e.SystemSettingId).ValueGeneratedNever();
|
||||
entity.Property(e => e.DateCreated).HasDefaultValueSql("(getdate())");
|
||||
entity.Property(e => e.DefaultValue).HasDefaultValue("");
|
||||
entity.Property(e => e.Description).HasDefaultValue("");
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
entity.Property(e => e.Value).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TescheduledTask>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.ScheduledTaskGuid).HasName("PK__TESchedu__F13F6EC0946D3031");
|
||||
|
||||
entity.Property(e => e.ScheduledTaskGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AssemblyQualifiedName).HasDefaultValue("");
|
||||
entity.Property(e => e.DateCreatedUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.Description).HasDefaultValue("");
|
||||
entity.Property(e => e.DisabledExpirationDate).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.EndDate).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.HasEndDate).HasDefaultValue(true);
|
||||
entity.Property(e => e.LastRunDateUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.LastSubmittedDateUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.Name).HasDefaultValue("");
|
||||
entity.Property(e => e.SetupXml).HasDefaultValue("");
|
||||
entity.Property(e => e.StartDate).HasDefaultValue(new DateTime(1900, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
entity.Property(e => e.TimeZoneId).HasDefaultValue("Central Standard Time");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<UserProfile>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.UserGuid).HasName("PK__UserProf__81B7740C1EECCB67");
|
||||
|
||||
entity.Property(e => e.UserGuid).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.AuthId).HasDefaultValue("");
|
||||
entity.Property(e => e.BackupPassword).HasDefaultValue("");
|
||||
entity.Property(e => e.BrowserVersion).HasDefaultValue("Unknown");
|
||||
entity.Property(e => e.Custom1).HasDefaultValue("");
|
||||
entity.Property(e => e.Custom2).HasDefaultValue("");
|
||||
entity.Property(e => e.Custom3).HasDefaultValue("");
|
||||
entity.Property(e => e.Custom4).HasDefaultValue("");
|
||||
entity.Property(e => e.DefaultAppModeLevel).HasDefaultValue((byte)1);
|
||||
entity.Property(e => e.Domain).HasDefaultValue("");
|
||||
entity.Property(e => e.DotNetVersion).HasDefaultValue("");
|
||||
entity.Property(e => e.EmailAddress).HasDefaultValue("");
|
||||
entity.Property(e => e.HashedPassword).HasDefaultValue("");
|
||||
entity.Property(e => e.LastChangedPasswordUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.LastLoginDateUtc).HasDefaultValueSql("(getutcdate())");
|
||||
entity.Property(e => e.NameFirst).HasDefaultValue("");
|
||||
entity.Property(e => e.NameLast).HasDefaultValue("");
|
||||
entity.Property(e => e.PhoneNumber).HasDefaultValue("");
|
||||
entity.Property(e => e.Salt).HasDefaultValueSql("(newid())");
|
||||
entity.Property(e => e.UserAgent).HasDefaultValue("Unknown");
|
||||
entity.Property(e => e.UserName).HasDefaultValue("");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ViewReimbursementAdjustment>(entity =>
|
||||
{
|
||||
entity.ToView("viewReimbursementAdjustment", "fp");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ViewStaffingAdjustment>(entity =>
|
||||
{
|
||||
entity.ToView("viewStaffingAdjustment", "fp");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ViewStatisticsAdjustment>(entity =>
|
||||
{
|
||||
entity.ToView("viewStatisticsAdjustment", "fp");
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("AddProviderEncountersDataForCharges", Schema = "fp")]
|
||||
public partial class AddProviderEncountersDataForCharge
|
||||
{
|
||||
[Key]
|
||||
[Column("AddProviderEncountersDataForChargesID")]
|
||||
public int AddProviderEncountersDataForChargesId { get; set; }
|
||||
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("ServiceLineID")]
|
||||
public int ServiceLineId { get; set; }
|
||||
|
||||
[Column("PatientClassID")]
|
||||
public int PatientClassId { get; set; }
|
||||
|
||||
[Column("ChargeCodeID")]
|
||||
public int ChargeCodeId { get; set; }
|
||||
|
||||
[Column("AgeCohortID")]
|
||||
public int AgeCohortId { get; set; }
|
||||
|
||||
[Column("MedicalSurgicalID")]
|
||||
public int MedicalSurgicalId { get; set; }
|
||||
|
||||
[Column("UnitTypeID")]
|
||||
public int UnitTypeId { get; set; }
|
||||
|
||||
[Column("ServiceEntityID")]
|
||||
public int ServiceEntityId { get; set; }
|
||||
|
||||
[Column("MSDRGID")]
|
||||
public int Msdrgid { get; set; }
|
||||
|
||||
[Column("UBRevCodeID")]
|
||||
public int UbrevCodeId { get; set; }
|
||||
|
||||
[Column("PrimaryCPTID")]
|
||||
public int PrimaryCptid { get; set; }
|
||||
|
||||
[Column("ServiceProviderID")]
|
||||
public int ServiceProviderId { get; set; }
|
||||
|
||||
[Column("ServiceProviderSpecialtyID")]
|
||||
public int ServiceProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("PerformingProviderID")]
|
||||
public int PerformingProviderId { get; set; }
|
||||
|
||||
[Column("PerformingProviderSpecialtyID")]
|
||||
public int PerformingProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("BillingCPTID")]
|
||||
public int BillingCptid { get; set; }
|
||||
|
||||
public bool IsProcessed { get; set; }
|
||||
|
||||
[ForeignKey("AdjustmentGuid")]
|
||||
[InverseProperty("AddProviderEncountersDataForCharges")]
|
||||
public virtual DepartmentChargeVolumeAdjustment Adjustment { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("AddProviderSummary", Schema = "fp")]
|
||||
[Index("SlencounterAdjustmentGuid", "DcvolumeAdjustmentGuid", Name = "IX_AddProviderSummary_LinkedAdjustments")]
|
||||
public partial class AddProviderSummary
|
||||
{
|
||||
[Key]
|
||||
[Column("SummaryID")]
|
||||
public int SummaryId { get; set; }
|
||||
|
||||
[Column("SLEncounterAdjustmentGUID")]
|
||||
public Guid? SlencounterAdjustmentGuid { get; set; }
|
||||
|
||||
[Column("DCVolumeAdjustmentGUID")]
|
||||
public Guid? DcvolumeAdjustmentGuid { get; set; }
|
||||
|
||||
public int EmployeeType { get; set; }
|
||||
|
||||
[Column("EmployeeID")]
|
||||
public int? EmployeeId { get; set; }
|
||||
|
||||
[Column("ProviderID")]
|
||||
public int? ProviderId { get; set; }
|
||||
|
||||
public int ProviderType { get; set; }
|
||||
|
||||
public int Specialty { get; set; }
|
||||
|
||||
[Column("StartDateUTC", TypeName = "datetime")]
|
||||
public DateTime StartDateUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BenchmarkAverage { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetTotal { get; set; }
|
||||
|
||||
[Column("BenchmarkProvidersJSON")]
|
||||
public string BenchmarkProvidersJson { get; set; } = null!;
|
||||
|
||||
public string Comment { get; set; } = null!;
|
||||
|
||||
[Column("ClassificationGroupID")]
|
||||
public int ClassificationGroupId { get; set; }
|
||||
|
||||
[Column("ClassificationCategoryID")]
|
||||
public int ClassificationCategoryId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("AdjustmentChunkingConfiguration", Schema = "fp")]
|
||||
public partial class AdjustmentChunkingConfiguration
|
||||
{
|
||||
[Key]
|
||||
[Column("SectionID")]
|
||||
public int SectionId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public bool IsChunkingEnabled { get; set; }
|
||||
|
||||
public int MaxAdjustmentsPerChunk { get; set; }
|
||||
|
||||
public int MaxImportAdjustmentsPerChunk { get; set; }
|
||||
|
||||
public int MaxAdjustmentRecordCountForChunking { get; set; }
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("APEDepartmentWorkflowStatus", Schema = "fp")]
|
||||
[Index("DepartmentId", "WorkflowStepId", Name = "UC_APEDepartmentWorkflowStatus_DepartmentID_WorkflowStepID", IsUnique = true)]
|
||||
public partial class ApedepartmentWorkflowStatus
|
||||
{
|
||||
[Key]
|
||||
[Column("DepartmentWorkflowStatusID")]
|
||||
public int DepartmentWorkflowStatusId { get; set; }
|
||||
|
||||
[Column("WorkflowStepID")]
|
||||
public int WorkflowStepId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
public byte Status { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime EnteredStepDateTimeUtc { get; set; }
|
||||
|
||||
[ForeignKey("WorkflowStepId")]
|
||||
[InverseProperty("ApedepartmentWorkflowStatuses")]
|
||||
public virtual Apeworkflow WorkflowStep { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("APEWorkflow", Schema = "fp")]
|
||||
public partial class Apeworkflow
|
||||
{
|
||||
[Key]
|
||||
[Column("WorkflowStepID")]
|
||||
public int WorkflowStepId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[Column("RoleID")]
|
||||
public int RoleId { get; set; }
|
||||
|
||||
public int WorkflowStepOrder { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
public bool IsEditable { get; set; }
|
||||
|
||||
public bool IsNotificationEnabled { get; set; }
|
||||
|
||||
[InverseProperty("WorkflowStep")]
|
||||
public virtual ICollection<ApedepartmentWorkflowStatus> ApedepartmentWorkflowStatuses { get; set; } = new List<ApedepartmentWorkflowStatus>();
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "DepartmentId", "AccountId")]
|
||||
[Table("BenefitsSpreads", Schema = "fp")]
|
||||
public partial class BenefitsSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("AccountID")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("BenefitsSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
149
ef-migration/src/Strata.Code.DataAccess/Models/BudgetConfig.cs
Normal file
149
ef-migration/src/Strata.Code.DataAccess/Models/BudgetConfig.cs
Normal file
@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("BudgetConfig", Schema = "fp")]
|
||||
[Index("BudgetConfigId", Name = "NCNU_BudgetConfig_BudgetConfigID")]
|
||||
[Index("FiscalYearId", Name = "NCNU_BudgetConfig_FiscalYearID")]
|
||||
public partial class BudgetConfig
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
[Column("FiscalYearID")]
|
||||
public short FiscalYearId { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Unicode(false)]
|
||||
public string ChargeMasterConfigJson { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "smalldatetime")]
|
||||
public DateTime DateModified { get; set; }
|
||||
|
||||
[Column(TypeName = "smalldatetime")]
|
||||
public DateTime DatePublished { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string BudgetConfigName { get; set; } = null!;
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
[StringLength(2000)]
|
||||
public string Comments { get; set; } = null!;
|
||||
|
||||
public bool IsOverUnderFundedUsed { get; set; }
|
||||
|
||||
[Column("IsFTEHidden")]
|
||||
public bool IsFtehidden { get; set; }
|
||||
|
||||
public bool IsProjectionHidden { get; set; }
|
||||
|
||||
public bool IsArchived { get; set; }
|
||||
|
||||
public bool IsProjectCurrentYear { get; set; }
|
||||
|
||||
[Column("IsMRTracking")]
|
||||
public bool IsMrtracking { get; set; }
|
||||
|
||||
[Column("ParentBudgetConfigID")]
|
||||
public short ParentBudgetConfigId { get; set; }
|
||||
|
||||
public byte MonthsLoaded { get; set; }
|
||||
|
||||
[Column("CurrentBudgetPhaseID")]
|
||||
public byte CurrentBudgetPhaseId { get; set; }
|
||||
|
||||
public byte AdjustmentClassificationSetting { get; set; }
|
||||
|
||||
public bool IsEngineDisabled { get; set; }
|
||||
|
||||
[Column("UseDSForSampling")]
|
||||
public bool UseDsforSampling { get; set; }
|
||||
|
||||
[Column("IsGLBudgetHistoryAvailable")]
|
||||
public bool IsGlbudgetHistoryAvailable { get; set; }
|
||||
|
||||
public bool IsStaffingBudgetHistoryAvailable { get; set; }
|
||||
|
||||
public bool IsTempoNonStaffingPageAvailable { get; set; }
|
||||
|
||||
public bool IsAdjustmentClassificationEnabled { get; set; }
|
||||
|
||||
public bool IsRestrictDepartmentAccess { get; set; }
|
||||
|
||||
public bool IsChargeMasterRefreshedForDollarImpactReport { get; set; }
|
||||
|
||||
[Column("DefaultReimbursementProjectionMethodID")]
|
||||
public int DefaultReimbursementProjectionMethodId { get; set; }
|
||||
|
||||
public bool IsProviderVolumesEnabled { get; set; }
|
||||
|
||||
public bool IsTempoOtherRevenuePageAvailable { get; set; }
|
||||
|
||||
public bool UseEmployeePlanning { get; set; }
|
||||
|
||||
public bool IsUsingSystemGeneratedHistoricalStats { get; set; }
|
||||
|
||||
public bool IsSubAccountCategoriesEnabled { get; set; }
|
||||
|
||||
public bool AreStatisticsAccountsEnabled { get; set; }
|
||||
|
||||
public bool IsProviderCompensationEnabled { get; set; }
|
||||
|
||||
public bool DisplayCategoryInMyBudgets { get; set; }
|
||||
|
||||
public bool IsLocalAdminReadOnly { get; set; }
|
||||
|
||||
public bool IsTargetingEmailEnabled { get; set; }
|
||||
|
||||
[Column("AllowLocalAdminAddEmpAddFTEPlanEditor")]
|
||||
public bool AllowLocalAdminAddEmpAddFteplanEditor { get; set; }
|
||||
|
||||
public bool AllowLocalAdminAddEmpAddJobCodeMyBudgets { get; set; }
|
||||
|
||||
public bool AllowLocalAdminAddAccountPlanEditor { get; set; }
|
||||
|
||||
public bool AllowLocalAdminAddAccountMyBudgets { get; set; }
|
||||
|
||||
public bool IsBudgetClosed { get; set; }
|
||||
|
||||
public bool IsStatisticsBudgetHistoryAvailable { get; set; }
|
||||
|
||||
public bool IsImpactReportsEnabled { get; set; }
|
||||
|
||||
[Column("DefaultReimbursementNetRevenueModelID")]
|
||||
public int DefaultReimbursementNetRevenueModelId { get; set; }
|
||||
|
||||
public bool IsProviderPlanningEnabled { get; set; }
|
||||
|
||||
public bool IsUsedForReportComparison { get; set; }
|
||||
|
||||
public bool UseProviderSource { get; set; }
|
||||
|
||||
public bool IsProjectionLockedOnMyBudget { get; set; }
|
||||
|
||||
public bool IsBudgetLockedOnMyBudget { get; set; }
|
||||
|
||||
public bool EnableExceptionActionItems { get; set; }
|
||||
|
||||
public bool IsWorkWeekOverrideCheckIgnored { get; set; }
|
||||
|
||||
[InverseProperty("BudgetConfig")]
|
||||
public virtual ICollection<DepartmentChargeVolumeAdjustment> DepartmentChargeVolumeAdjustments { get; set; } = new List<DepartmentChargeVolumeAdjustment>();
|
||||
|
||||
[InverseProperty("BudgetConfig")]
|
||||
public virtual ICollection<GeneralLedgerInitialPlanConfigDetail> GeneralLedgerInitialPlanConfigDetails { get; set; } = new List<GeneralLedgerInitialPlanConfigDetail>();
|
||||
|
||||
[InverseProperty("BudgetConfig")]
|
||||
public virtual ICollection<InitialPlanRule> InitialPlanRules { get; set; } = new List<InitialPlanRule>();
|
||||
|
||||
[InverseProperty("BudgetConfig")]
|
||||
public virtual ICollection<StaffingInitialPlanConfigDetail> StaffingInitialPlanConfigDetails { get; set; } = new List<StaffingInitialPlanConfigDetail>();
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("BudgetConfigDefaultSetting", Schema = "fp")]
|
||||
public partial class BudgetConfigDefaultSetting
|
||||
{
|
||||
[Key]
|
||||
[Column("SettingID")]
|
||||
public int SettingId { get; set; }
|
||||
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public bool DefaultValue { get; set; }
|
||||
|
||||
public DateOnly DateCreated { get; set; }
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("BudgetConfigSetting", Schema = "fp")]
|
||||
public partial class BudgetConfigSetting
|
||||
{
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Column("SettingID")]
|
||||
public int SettingId { get; set; }
|
||||
|
||||
public bool Value { get; set; }
|
||||
|
||||
[ForeignKey("SettingId")]
|
||||
public virtual BudgetConfigDefaultSetting Setting { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("BudgetRefreshRequest", Schema = "fp")]
|
||||
public partial class BudgetRefreshRequest
|
||||
{
|
||||
[Key]
|
||||
[Column("RequestGUID")]
|
||||
public Guid RequestGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateTimeStamp { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string UserName { get; set; } = null!;
|
||||
|
||||
[Column("SourceDimensionalityJSON")]
|
||||
public string SourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateStarted { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateEnded { get; set; }
|
||||
|
||||
public byte Status { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; } = null!;
|
||||
|
||||
public string StackTrace { get; set; } = null!;
|
||||
|
||||
public string CurrentDataRefreshMethod { get; set; } = null!;
|
||||
|
||||
[Column("SourceActionID")]
|
||||
public short SourceActionId { get; set; }
|
||||
|
||||
public string AffectedDepartments { get; set; } = null!;
|
||||
|
||||
public bool IsIgnoreTargetingError { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Source { get; set; } = null!;
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
[Column("SamplingJSON")]
|
||||
public string SamplingJson { get; set; } = null!;
|
||||
|
||||
[StringLength(2000)]
|
||||
public string EmailAddress { get; set; } = null!;
|
||||
|
||||
[Column("InitialSamplingJSON")]
|
||||
public string InitialSamplingJson { get; set; } = null!;
|
||||
|
||||
[Column("InitialSourceDimensionalityJSON")]
|
||||
public string InitialSourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column("DateTimeStampUTC", TypeName = "datetime")]
|
||||
public DateTime DateTimeStampUtc { get; set; }
|
||||
|
||||
[Column("DateStartedUTC", TypeName = "datetime")]
|
||||
public DateTime DateStartedUtc { get; set; }
|
||||
|
||||
[Column("DateEndedUTC", TypeName = "datetime")]
|
||||
public DateTime DateEndedUtc { get; set; }
|
||||
|
||||
[Column("PlanSectionID")]
|
||||
public int PlanSectionId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("BudgetRefreshRequestHistory", Schema = "fp")]
|
||||
public partial class BudgetRefreshRequestHistory
|
||||
{
|
||||
[Column("RequestGUID")]
|
||||
public Guid RequestGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateTimeStamp { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string UserName { get; set; } = null!;
|
||||
|
||||
[Column("SourceDimensionalityJSON")]
|
||||
public string SourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateStarted { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateEnded { get; set; }
|
||||
|
||||
public byte Status { get; set; }
|
||||
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
public string? StackTrace { get; set; }
|
||||
|
||||
[Column("SourceActionID")]
|
||||
public short SourceActionId { get; set; }
|
||||
|
||||
public string AffectedDepartments { get; set; } = null!;
|
||||
|
||||
[Column("CollapsedRequestGUID")]
|
||||
public Guid CollapsedRequestGuid { get; set; }
|
||||
|
||||
public bool IsIgnoreTargetingError { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Source { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string JazzVersion { get; set; } = null!;
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
[Column("SamplingJSON")]
|
||||
public string SamplingJson { get; set; } = null!;
|
||||
|
||||
[Column("InitialSamplingJSON")]
|
||||
public string InitialSamplingJson { get; set; } = null!;
|
||||
|
||||
[Column("InitialSourceDimensionalityJSON")]
|
||||
public string InitialSourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
public string CanceledBy { get; set; } = null!;
|
||||
|
||||
[Column("DateTimeStampUTC", TypeName = "datetime")]
|
||||
public DateTime DateTimeStampUtc { get; set; }
|
||||
|
||||
[Column("DateStartedUTC", TypeName = "datetime")]
|
||||
public DateTime DateStartedUtc { get; set; }
|
||||
|
||||
[Column("DateEndedUTC", TypeName = "datetime")]
|
||||
public DateTime DateEndedUtc { get; set; }
|
||||
|
||||
public int AffectedDepartmentCount { get; set; }
|
||||
|
||||
[Column("PlanSectionID")]
|
||||
public int PlanSectionId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("ChargeVolumeAddProviderAdjustment", Schema = "fp")]
|
||||
[Index("BudgetConfigId", "AdjustmentGuid", "EntityId", "DepartmentId", "ServiceLineId", "PatientClassId", "AgeCohortId", "MedicalSurgicalId", "ChargeCodeId", "ServiceEntityId", "Msdrgid", "UbrevCodeId", "PrimaryCptid", "ServiceProviderId", "ServiceProviderSpecialtyId", "PerformingProviderId", "PerformingProviderSpecialtyId", "BillingCptid", "TimeClassId", "BudgetPhaseId", Name = "IX_ClusteredUnique", IsUnique = true)]
|
||||
public partial class ChargeVolumeAddProviderAdjustment
|
||||
{
|
||||
[Key]
|
||||
[Column("RowID")]
|
||||
public int RowId { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("ServiceLineID")]
|
||||
public int ServiceLineId { get; set; }
|
||||
|
||||
[Column("PatientClassID")]
|
||||
public int PatientClassId { get; set; }
|
||||
|
||||
[Column("AgeCohortID")]
|
||||
public int AgeCohortId { get; set; }
|
||||
|
||||
[Column("MedicalSurgicalID")]
|
||||
public int MedicalSurgicalId { get; set; }
|
||||
|
||||
[Column("ChargeCodeID")]
|
||||
public int ChargeCodeId { get; set; }
|
||||
|
||||
[Column("ServiceEntityID")]
|
||||
public int ServiceEntityId { get; set; }
|
||||
|
||||
[Column("MSDRGID")]
|
||||
public int Msdrgid { get; set; }
|
||||
|
||||
[Column("UBRevCodeID")]
|
||||
public int UbrevCodeId { get; set; }
|
||||
|
||||
[Column("PrimaryCPTID")]
|
||||
public int PrimaryCptid { get; set; }
|
||||
|
||||
[Column("BillingCPTID")]
|
||||
public int BillingCptid { get; set; }
|
||||
|
||||
[Column("ServiceProviderID")]
|
||||
public int ServiceProviderId { get; set; }
|
||||
|
||||
[Column("ServiceProviderSpecialtyID")]
|
||||
public int ServiceProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("PerformingProviderID")]
|
||||
public int PerformingProviderId { get; set; }
|
||||
|
||||
[Column("PerformingProviderSpecialtyID")]
|
||||
public int PerformingProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("BudgetPhaseID")]
|
||||
public byte BudgetPhaseId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value12 { get; set; }
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "DepartmentId", "ServiceLineId", "ChargeCodeId", "PatientClassId", "AgeCohortId", "MedicalSurgicalId")]
|
||||
[Table("ChargeVolumeSpreads", Schema = "fp")]
|
||||
public partial class ChargeVolumeSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ServiceLineID")]
|
||||
public int ServiceLineId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ChargeCodeID")]
|
||||
public int ChargeCodeId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("PatientClassID")]
|
||||
public int PatientClassId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("AgeCohortID")]
|
||||
public int AgeCohortId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("MedicalSurgicalID")]
|
||||
public int MedicalSurgicalId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[Column("ChargeEntityID")]
|
||||
public int ChargeEntityId { get; set; }
|
||||
|
||||
[Column("MSDRGID")]
|
||||
public int Msdrgid { get; set; }
|
||||
|
||||
[Column("UBRevCodeID")]
|
||||
public int UbrevCodeId { get; set; }
|
||||
|
||||
[Column("CPTID")]
|
||||
public int Cptid { get; set; }
|
||||
|
||||
[Column("ServiceProviderID")]
|
||||
public int ServiceProviderId { get; set; }
|
||||
|
||||
[Column("ServiceProviderSpecialtyID")]
|
||||
public int ServiceProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("BillingProviderID")]
|
||||
public int BillingProviderId { get; set; }
|
||||
|
||||
[Column("BillingProviderSpecialtyID")]
|
||||
public int BillingProviderSpecialtyId { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("ChargeVolumeSpreads")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("ChargeVolumeSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("DataRefreshTargetThreshold", Schema = "fp")]
|
||||
public partial class DataRefreshTargetThreshold
|
||||
{
|
||||
[StringLength(300)]
|
||||
public string ClassName { get; set; } = null!;
|
||||
|
||||
public int Threshold { get; set; }
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("DepartmentChargeVolumeAdjustment", Schema = "fp")]
|
||||
public partial class DepartmentChargeVolumeAdjustment
|
||||
{
|
||||
[Key]
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
public byte AdjustmentType { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value { get; set; }
|
||||
|
||||
[Column("AdjustmentFilterJSON")]
|
||||
public string AdjustmentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("GroupingHierarchyJSON")]
|
||||
public string GroupingHierarchyJson { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string AdjustedProperty { get; set; } = null!;
|
||||
|
||||
public string Comment { get; set; } = null!;
|
||||
|
||||
[Column("AuthorGUID")]
|
||||
public Guid AuthorGuid { get; set; }
|
||||
|
||||
[StringLength(260)]
|
||||
public string AuthorFullName { get; set; } = null!;
|
||||
|
||||
[Column("GroupingGUID")]
|
||||
public Guid GroupingGuid { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("ClassificationGroupID")]
|
||||
public int ClassificationGroupId { get; set; }
|
||||
|
||||
[Column("ClassificationCategoryID")]
|
||||
public int ClassificationCategoryId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastModifiedDateUtc { get; set; }
|
||||
|
||||
public string DimensionMemberJson { get; set; } = null!;
|
||||
|
||||
public int AffectedDataCount { get; set; }
|
||||
|
||||
[Column("AdjustmentID")]
|
||||
public int AdjustmentId { get; set; }
|
||||
|
||||
public bool IsErrored { get; set; }
|
||||
|
||||
[InverseProperty("Adjustment")]
|
||||
public virtual ICollection<AddProviderEncountersDataForCharge> AddProviderEncountersDataForCharges { get; set; } = new List<AddProviderEncountersDataForCharge>();
|
||||
|
||||
[ForeignKey("BudgetConfigGuid")]
|
||||
[InverseProperty("DepartmentChargeVolumeAdjustments")]
|
||||
public virtual BudgetConfig BudgetConfig { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("DepartmentConfig", Schema = "fp")]
|
||||
[Index("DepartmentId", Name = "NCNU_DepartmentConfig_DepartmentID")]
|
||||
[Index("EntityGroupConfigGuid", Name = "NCNU_DepartmentConfig_EntityGroupConfigGUID")]
|
||||
[Index("DepartmentId", "EntityGroupConfigGuid", Name = "UC_FP_DepartmentConfig_DeptID_EGC", IsUnique = true)]
|
||||
public partial class DepartmentConfig
|
||||
{
|
||||
[Key]
|
||||
[Column("DepartmentConfigGUID")]
|
||||
public Guid DepartmentConfigGuid { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime UpdatedDate { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigGUID")]
|
||||
public Guid EntityGroupConfigGuid { get; set; }
|
||||
|
||||
public bool HasStatistics { get; set; }
|
||||
|
||||
public bool HasRevenueAndDeductions { get; set; }
|
||||
|
||||
public bool HasOtherRevenue { get; set; }
|
||||
|
||||
public bool HasRoster { get; set; }
|
||||
|
||||
public bool HasStaffing { get; set; }
|
||||
|
||||
public bool HasBenefits { get; set; }
|
||||
|
||||
public bool HasNonStaffingExpenses { get; set; }
|
||||
|
||||
public bool HasZeroBasedExpenses { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("DepartmentConfigs")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
|
||||
[ForeignKey("EntityGroupConfigGuid")]
|
||||
[InverseProperty("DepartmentConfigs")]
|
||||
public virtual EntityGroupConfig EntityGroupConfig { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("DimCategory", Schema = "fp")]
|
||||
public partial class DimCategory
|
||||
{
|
||||
[Column("CategoryID")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
[StringLength(50)]
|
||||
[Unicode(false)]
|
||||
public string Category { get; set; } = null!;
|
||||
}
|
||||
478
ef-migration/src/Strata.Code.DataAccess/Models/DimDepartment.cs
Normal file
478
ef-migration/src/Strata.Code.DataAccess/Models/DimDepartment.cs
Normal file
@ -0,0 +1,478 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("DimDepartment", Schema = "fw")]
|
||||
[Index("DepartmentRollup1Id", Name = "IX_DepartmentRollup1ID")]
|
||||
[Index("DepartmentRollup2Id", Name = "IX_DepartmentRollup2ID")]
|
||||
[Index("DepartmentRollup3Id", Name = "IX_DepartmentRollup3ID")]
|
||||
[Index("DepartmentRollup4Id", Name = "IX_DepartmentRollup4ID")]
|
||||
[Index("DepartmentRollup5Id", Name = "IX_DepartmentRollup5ID")]
|
||||
[Index("DepartmentRollup6Id", Name = "IX_DepartmentRollup6ID")]
|
||||
[Index("DepartmentId", "DepartmentRollup1Id", "DepartmentRollup2Id", "DepartmentRollup3Id", "DepartmentRollup4Id", "DepartmentRollup5Id", "DepartmentRollup6Id", Name = "IX_Hierarchy")]
|
||||
[Index("MemberGuid", Name = "IX_MemberGUID")]
|
||||
[Index("IsMrorPr", "DepartmentId", Name = "NCNU_DimDepartment_IsMRorPR_DepartmentID")]
|
||||
[Index("DepartmentId", "EntityId", Name = "NCNU_EntityID")]
|
||||
[Index("DepartmentCode", Name = "NCU_DepartmentCode", IsUnique = true)]
|
||||
public partial class DimDepartment
|
||||
{
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("MemberGUID")]
|
||||
public Guid MemberGuid { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string DepartmentCode { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
[Column("SystemID")]
|
||||
public short SystemId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string System { get; set; } = null!;
|
||||
|
||||
public int SystemSortOrder { get; set; }
|
||||
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[StringLength(303)]
|
||||
public string? Entity { get; set; }
|
||||
|
||||
public int EntitySortOrder { get; set; }
|
||||
|
||||
public short EntityTypeOverride { get; set; }
|
||||
|
||||
[Column("DepartmentRollup1ID")]
|
||||
public short DepartmentRollup1Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup1 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup1SortOrder { get; set; }
|
||||
|
||||
[Column("DepartmentRollup2ID")]
|
||||
public short DepartmentRollup2Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup2 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup2SortOrder { get; set; }
|
||||
|
||||
[Column("DepartmentRollup3ID")]
|
||||
public short DepartmentRollup3Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup3 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup3SortOrder { get; set; }
|
||||
|
||||
[Column("DepartmentRollup4ID")]
|
||||
public int DepartmentRollup4Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup4 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup4SortOrder { get; set; }
|
||||
|
||||
[Column("DepartmentRollup5ID")]
|
||||
public short DepartmentRollup5Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup5 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup5SortOrder { get; set; }
|
||||
|
||||
[Column("DepartmentRollup6ID")]
|
||||
public short DepartmentRollup6Id { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup6 { get; set; } = null!;
|
||||
|
||||
public int DepartmentRollup6SortOrder { get; set; }
|
||||
|
||||
[Column("CareSettingID")]
|
||||
public int CareSettingId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string CareSetting { get; set; } = null!;
|
||||
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
public bool IsDepartmentRollup { get; set; }
|
||||
|
||||
[Column("FunctionalAreaID")]
|
||||
public int FunctionalAreaId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string FunctionalArea { get; set; } = null!;
|
||||
|
||||
[Column("ResearchDepartmentCategoryID")]
|
||||
public int ResearchDepartmentCategoryId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string ResearchDepartmentCategoryName { get; set; } = null!;
|
||||
|
||||
public int ResearchDepartmentCategorySortOrder { get; set; }
|
||||
|
||||
[Column("AttributionTypeID")]
|
||||
public int AttributionTypeId { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string AttributionType { get; set; } = null!;
|
||||
|
||||
[Column("CAPIsDefined")]
|
||||
public bool CapisDefined { get; set; }
|
||||
|
||||
[Column("IsCAP")]
|
||||
public bool IsCap { get; set; }
|
||||
|
||||
[Column("DSSIsDefined")]
|
||||
public bool DssisDefined { get; set; }
|
||||
|
||||
[Column("IsDSS")]
|
||||
public bool IsDss { get; set; }
|
||||
|
||||
[Column("DepartmentTypeOLD")]
|
||||
[StringLength(100)]
|
||||
public string DepartmentTypeOld { get; set; } = null!;
|
||||
|
||||
[Column("DSSDeptGrouping")]
|
||||
[StringLength(200)]
|
||||
public string DssdeptGrouping { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup1ID")]
|
||||
public int DssdepartmentRollup1Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup1Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup1Name { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup2ID")]
|
||||
public int DssdepartmentRollup2Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup2Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup2Name { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup3ID")]
|
||||
public int DssdepartmentRollup3Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup3Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup3Name { get; set; } = null!;
|
||||
|
||||
public bool IsOverhead { get; set; }
|
||||
|
||||
[Column("OBIsDefined")]
|
||||
public bool ObisDefined { get; set; }
|
||||
|
||||
[Column("IsOB")]
|
||||
public bool IsOb { get; set; }
|
||||
|
||||
[Column("IsMRPlan")]
|
||||
public bool IsMrplan { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
public bool IsVariable { get; set; }
|
||||
|
||||
public bool IsAccountFlexing { get; set; }
|
||||
|
||||
[Column("FlexingBucketGUID")]
|
||||
public Guid FlexingBucketGuid { get; set; }
|
||||
|
||||
[Column("OBGlobalStatisticsPlanID")]
|
||||
public int ObglobalStatisticsPlanId { get; set; }
|
||||
|
||||
[Column("OBGlobalStatisticsPlan")]
|
||||
[StringLength(1000)]
|
||||
public string ObglobalStatisticsPlan { get; set; } = null!;
|
||||
|
||||
[Column("OBReimbursementPlanID")]
|
||||
public int ObreimbursementPlanId { get; set; }
|
||||
|
||||
[Column("OBReimbursementPlan")]
|
||||
[StringLength(458)]
|
||||
public string ObreimbursementPlan { get; set; } = null!;
|
||||
|
||||
[Column("OBServiceLinePlanID")]
|
||||
public int ObserviceLinePlanId { get; set; }
|
||||
|
||||
[Column("OBServiceLinePlan")]
|
||||
[StringLength(458)]
|
||||
public string ObserviceLinePlan { get; set; } = null!;
|
||||
|
||||
[Column("SPIsDefined")]
|
||||
public bool SpisDefined { get; set; }
|
||||
|
||||
[Column("IsLRFP")]
|
||||
public bool IsLrfp { get; set; }
|
||||
|
||||
[Column("RollingPlanID")]
|
||||
public int RollingPlanId { get; set; }
|
||||
|
||||
[Column("SPRollingForecastPlanName")]
|
||||
[StringLength(200)]
|
||||
public string SprollingForecastPlanName { get; set; } = null!;
|
||||
|
||||
[Column("OpsPlanID")]
|
||||
public int OpsPlanId { get; set; }
|
||||
|
||||
[Column("SPOperationsPlanName")]
|
||||
[StringLength(200)]
|
||||
public string SpoperationsPlanName { get; set; } = null!;
|
||||
|
||||
[Column("BalPlanID")]
|
||||
public int BalPlanId { get; set; }
|
||||
|
||||
[Column("SPBalanceSheetPlanName")]
|
||||
[StringLength(200)]
|
||||
public string SpbalanceSheetPlanName { get; set; } = null!;
|
||||
|
||||
public byte PatientTypeRollup { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string PatientTypeRollupName { get; set; } = null!;
|
||||
|
||||
[Column("SPJobCodeGroup")]
|
||||
public int SpjobCodeGroup { get; set; }
|
||||
|
||||
[Column("SPJobCodeGroupName")]
|
||||
[StringLength(100)]
|
||||
public string SpjobCodeGroupName { get; set; } = null!;
|
||||
|
||||
[Column("SPPhysicianGroup")]
|
||||
public int SpphysicianGroup { get; set; }
|
||||
|
||||
[Column("SPPhysicianGroupName")]
|
||||
[StringLength(100)]
|
||||
public string SpphysicianGroupName { get; set; } = null!;
|
||||
|
||||
[Column("SPAccountRollup")]
|
||||
public int SpaccountRollup { get; set; }
|
||||
|
||||
[Column("SPAccountRollupName")]
|
||||
[StringLength(100)]
|
||||
public string SpaccountRollupName { get; set; } = null!;
|
||||
|
||||
[Column("SPServiceLineForecastType")]
|
||||
public short SpserviceLineForecastType { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string ConsolidatedCode { get; set; } = null!;
|
||||
|
||||
public bool IsConsolidated { get; set; }
|
||||
|
||||
[Column("TransactionID")]
|
||||
public int TransactionId { get; set; }
|
||||
|
||||
[Column("HistoryItemGUID")]
|
||||
public Guid HistoryItemGuid { get; set; }
|
||||
|
||||
public byte[] Version { get; set; } = null!;
|
||||
|
||||
[StringLength(203)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[Column("SecureGroupID")]
|
||||
public int SecureGroupId { get; set; }
|
||||
|
||||
[Column("WorkWeekID")]
|
||||
public int WorkWeekId { get; set; }
|
||||
|
||||
[Column("CAPDefaultSalesTax")]
|
||||
public double CapdefaultSalesTax { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string EntityCode { get; set; } = null!;
|
||||
|
||||
[Column("FundID")]
|
||||
public int FundId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Fund { get; set; } = null!;
|
||||
|
||||
public int FundSortOrder { get; set; }
|
||||
|
||||
[Column("ProjectID")]
|
||||
public int ProjectId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Project { get; set; } = null!;
|
||||
|
||||
public int ProjectSortOrder { get; set; }
|
||||
|
||||
[Column("HomeDepartmentID")]
|
||||
public int HomeDepartmentId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string HomeDepartment { get; set; } = null!;
|
||||
|
||||
public int HomeDepartmentSortOrder { get; set; }
|
||||
|
||||
[Column("ProgramID")]
|
||||
public int ProgramId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Program { get; set; } = null!;
|
||||
|
||||
public int ProgramSortOrder { get; set; }
|
||||
|
||||
[Column("PayCycleID")]
|
||||
public int PayCycleId { get; set; }
|
||||
|
||||
[Column("FWIsDefined")]
|
||||
public bool FwisDefined { get; set; }
|
||||
|
||||
[Column("DepartmentTypeID")]
|
||||
public int DepartmentTypeId { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentType { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string DepartmentCodeRaw { get; set; } = null!;
|
||||
|
||||
[Column("IsPR")]
|
||||
public bool IsPr { get; set; }
|
||||
|
||||
[Column("MRVicePresident")]
|
||||
[StringLength(400)]
|
||||
public string MrvicePresident { get; set; } = null!;
|
||||
|
||||
[Column("MRDirector")]
|
||||
[StringLength(400)]
|
||||
public string Mrdirector { get; set; } = null!;
|
||||
|
||||
[Column("MRManager")]
|
||||
[StringLength(400)]
|
||||
public string Mrmanager { get; set; } = null!;
|
||||
|
||||
[Column("IsMROrPR")]
|
||||
public int IsMrorPr { get; set; }
|
||||
|
||||
[Column("IsMRMetricTracking")]
|
||||
public bool IsMrmetricTracking { get; set; }
|
||||
|
||||
public bool IsHealthPlanAdmin { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup1Code { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup2Code { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup3Code { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup4Code { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup5Code { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string DepartmentRollup6Code { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup4Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup4Name { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup4ID")]
|
||||
public int DssdepartmentRollup4Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup5ID")]
|
||||
public int DssdepartmentRollup5Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup5Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup5Name { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup6ID")]
|
||||
public int DssdepartmentRollup6Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup6Name")]
|
||||
[StringLength(200)]
|
||||
public string DssdepartmentRollup6Name { get; set; } = null!;
|
||||
|
||||
[Column("DSSDepartmentRollup7ID")]
|
||||
public int DssdepartmentRollup7Id { get; set; }
|
||||
|
||||
[Column("DSSDepartmentRollup7Name")]
|
||||
[StringLength(100)]
|
||||
public string DssdepartmentRollup7Name { get; set; } = null!;
|
||||
|
||||
[Column("SPHDepartmentRollupID")]
|
||||
public int SphdepartmentRollupId { get; set; }
|
||||
|
||||
[Column("SPHDepartmentRollupName")]
|
||||
[StringLength(200)]
|
||||
public string SphdepartmentRollupName { get; set; } = null!;
|
||||
|
||||
[Column("SPHDepartmentRollupConfidenceScore")]
|
||||
public double SphdepartmentRollupConfidenceScore { get; set; }
|
||||
|
||||
[Column("SPHDepartmentTypeID")]
|
||||
public int SphdepartmentTypeId { get; set; }
|
||||
|
||||
[Column("SPHDepartmentType")]
|
||||
[StringLength(200)]
|
||||
public string SphdepartmentType { get; set; } = null!;
|
||||
|
||||
public bool IsClaimsCosting { get; set; }
|
||||
|
||||
[Column("SPHDepartmentRollupIsValidated")]
|
||||
public bool SphdepartmentRollupIsValidated { get; set; }
|
||||
|
||||
[Column("CompAnDepartmentID")]
|
||||
public int CompAnDepartmentId { get; set; }
|
||||
|
||||
[Column("ProductivityPercentileID")]
|
||||
public int ProductivityPercentileId { get; set; }
|
||||
|
||||
[StringLength(200)]
|
||||
public string ProductivityPercentile { get; set; } = null!;
|
||||
|
||||
[StringLength(200)]
|
||||
public string CompAnDepartment { get; set; } = null!;
|
||||
|
||||
[Column("SPHDepartmentID")]
|
||||
public int SphdepartmentId { get; set; }
|
||||
|
||||
[Column("SPHDepartmentConfidenceScore")]
|
||||
public double SphdepartmentConfidenceScore { get; set; }
|
||||
|
||||
[Column("SPHDepartmentIsValidated")]
|
||||
public bool SphdepartmentIsValidated { get; set; }
|
||||
|
||||
[Column("SPHDepartmentName")]
|
||||
[StringLength(200)]
|
||||
public string SphdepartmentName { get; set; } = null!;
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<ChargeVolumeSpread> ChargeVolumeSpreads { get; set; } = new List<ChargeVolumeSpread>();
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<DepartmentConfig> DepartmentConfigs { get; set; } = new List<DepartmentConfig>();
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<GeneralLedger> GeneralLedgers { get; set; } = new List<GeneralLedger>();
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<ProviderCompensationSpread> ProviderCompensationSpreads { get; set; } = new List<ProviderCompensationSpread>();
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<StaffingSpread> StaffingSpreads { get; set; } = new List<StaffingSpread>();
|
||||
|
||||
[InverseProperty("Department")]
|
||||
public virtual ICollection<StatisticsSpread> StatisticsSpreads { get; set; } = new List<StatisticsSpread>();
|
||||
}
|
||||
52
ef-migration/src/Strata.Code.DataAccess/Models/EngineLog.cs
Normal file
52
ef-migration/src/Strata.Code.DataAccess/Models/EngineLog.cs
Normal file
@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("RequestGuid", "AttemptId", "StepId")]
|
||||
[Table("EngineLog", Schema = "fp")]
|
||||
public partial class EngineLog
|
||||
{
|
||||
[Key]
|
||||
[Column("RequestGUID")]
|
||||
public Guid RequestGuid { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("StepID")]
|
||||
public int StepId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("AttemptID")]
|
||||
public int AttemptId { get; set; }
|
||||
|
||||
[StringLength(300)]
|
||||
public string StepName { get; set; } = null!;
|
||||
|
||||
[StringLength(300)]
|
||||
public string ClassName { get; set; } = null!;
|
||||
|
||||
[Column("SourceDimensionalityJSON")]
|
||||
public string SourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column("OptionsJSON")]
|
||||
public string OptionsJson { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateStarted { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateEnded { get; set; }
|
||||
|
||||
public byte Status { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; } = null!;
|
||||
|
||||
public string StackTrace { get; set; } = null!;
|
||||
|
||||
public string AffectedDepartments { get; set; } = null!;
|
||||
|
||||
public int AffectedDepartmentCount { get; set; }
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("EntityGroupConfig", Schema = "fp")]
|
||||
public partial class EntityGroupConfig
|
||||
{
|
||||
[Key]
|
||||
[Column("EntityGroupConfigGUID")]
|
||||
public Guid EntityGroupConfigGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[StringLength(1000)]
|
||||
public string? Comments { get; set; }
|
||||
|
||||
[Column("AccountTimeClassID")]
|
||||
public byte AccountTimeClassId { get; set; }
|
||||
|
||||
[Column("AccountFiscalYearID")]
|
||||
public short AccountFiscalYearId { get; set; }
|
||||
|
||||
[Column("PayrollTimeClassID")]
|
||||
public byte PayrollTimeClassId { get; set; }
|
||||
|
||||
[Column("PayrollFiscalYearID")]
|
||||
public short PayrollFiscalYearId { get; set; }
|
||||
|
||||
[Column("ServiceLineEncounterTimeClassID")]
|
||||
public byte ServiceLineEncounterTimeClassId { get; set; }
|
||||
|
||||
[Column("ServiceLineEncounterFiscalYearID")]
|
||||
public short ServiceLineEncounterFiscalYearId { get; set; }
|
||||
|
||||
[Column("DepartmentChargeVolumeTimeClassID")]
|
||||
public byte DepartmentChargeVolumeTimeClassId { get; set; }
|
||||
|
||||
[Column("DepartmentChargeVolumeFiscalYearID")]
|
||||
public short DepartmentChargeVolumeFiscalYearId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime AccountLastSampled { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime PayrollLastSampled { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime ServiceLineEncounterLastSampled { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DepartmentChargeVolumeLastSampled { get; set; }
|
||||
|
||||
[Column("CostingConfigGUID")]
|
||||
public Guid CostingConfigGuid { get; set; }
|
||||
|
||||
[Column("CostingConfigTimeClassID")]
|
||||
public byte CostingConfigTimeClassId { get; set; }
|
||||
|
||||
[Column(TypeName = "smalldatetime")]
|
||||
public DateTime? DateModified { get; set; }
|
||||
|
||||
[Column(TypeName = "smalldatetime")]
|
||||
public DateTime? DatePublished { get; set; }
|
||||
|
||||
[Column("BenefitsTimeClassID")]
|
||||
public byte BenefitsTimeClassId { get; set; }
|
||||
|
||||
[Column("BenefitsFiscalYearID")]
|
||||
public short BenefitsFiscalYearId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime BenefitsLastSampled { get; set; }
|
||||
|
||||
public bool IsMarkedForDeletion { get; set; }
|
||||
|
||||
[Column("StatisticsTimeClassID")]
|
||||
public byte StatisticsTimeClassId { get; set; }
|
||||
|
||||
[Column("StatisticsFiscalYearID")]
|
||||
public short StatisticsFiscalYearId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime StatisticsLastSampled { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
public bool IsBudgetLockDown { get; set; }
|
||||
|
||||
public bool IsRosterUsed { get; set; }
|
||||
|
||||
public short StatisticsModel { get; set; }
|
||||
|
||||
[Column("RevenueAndDeductionsTimeClassID")]
|
||||
public byte RevenueAndDeductionsTimeClassId { get; set; }
|
||||
|
||||
[Column("RevenueAndDeductionsFiscalYearID")]
|
||||
public short RevenueAndDeductionsFiscalYearId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime RevenueAndDeductionsLastSampled { get; set; }
|
||||
|
||||
public bool IsPatientActivityFlexingForStaffing { get; set; }
|
||||
|
||||
public bool IsPatientActivityFlexingForNonStaffing { get; set; }
|
||||
|
||||
public Guid ParentEntityGroupConfigGuid { get; set; }
|
||||
|
||||
public bool IsPayorGroupUsedForCrosswalk { get; set; }
|
||||
|
||||
[InverseProperty("EntityGroupConfig")]
|
||||
public virtual ICollection<DepartmentConfig> DepartmentConfigs { get; set; } = new List<DepartmentConfig>();
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("FixChangeHistoryRequest", Schema = "fp")]
|
||||
public partial class FixChangeHistoryRequest
|
||||
{
|
||||
[Key]
|
||||
[Column("RequestGUID")]
|
||||
public Guid RequestGuid { get; set; }
|
||||
|
||||
public byte ChangeHistoryRecordType { get; set; }
|
||||
|
||||
[Column("DateCreatedUTC", TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column("BasisID")]
|
||||
public int BasisId { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("BudgetPhaseID")]
|
||||
public byte BudgetPhaseId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value12 { get; set; }
|
||||
}
|
||||
812
ef-migration/src/Strata.Code.DataAccess/Models/GeneralLedger.cs
Normal file
812
ef-migration/src/Strata.Code.DataAccess/Models/GeneralLedger.cs
Normal file
@ -0,0 +1,812 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("GeneralLedger", Schema = "fp")]
|
||||
[Index("AccountId", Name = "IX_GeneralLedger_Account")]
|
||||
[Index("BudgetConfigId", Name = "IX_GeneralLedger_BudgetDollarsConfig")]
|
||||
[Index("DepartmentId", Name = "IX_GeneralLedger_Department")]
|
||||
[Index("EntityId", Name = "IX_GeneralLedger_Entity")]
|
||||
[Index("EntityGroupConfigId", "FlexingTypeId", Name = "IX_GeneralLedger_EntityGroupConfig")]
|
||||
public partial class GeneralLedger
|
||||
{
|
||||
[Key]
|
||||
[Column("GeneralLedgerID")]
|
||||
public int GeneralLedgerId { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("AccountID")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
[Column("FinancialReportingID")]
|
||||
public int FinancialReportingId { get; set; }
|
||||
|
||||
[Column("VariabilityID")]
|
||||
public int VariabilityId { get; set; }
|
||||
|
||||
[Column("APEModelSectionID")]
|
||||
public byte ApemodelSectionId { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime AddDate { get; set; }
|
||||
|
||||
public bool IsNew { get; set; }
|
||||
|
||||
[Column("FlexingTypeID")]
|
||||
public short FlexingTypeId { get; set; }
|
||||
|
||||
[Column("ChangeHistoryGroupingGUID")]
|
||||
public Guid ChangeHistoryGroupingGuid { get; set; }
|
||||
|
||||
public byte BudgetLockType { get; set; }
|
||||
|
||||
public byte BudgetLockFlag { get; set; }
|
||||
|
||||
public byte TargetLockType { get; set; }
|
||||
|
||||
public byte TargetLockFlag { get; set; }
|
||||
|
||||
public byte ProjectionLockType { get; set; }
|
||||
|
||||
public byte ProjectionLockFlag { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudgetTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjectionTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjustedTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjustedTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjustedTotal { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledBudget12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal SampledProjection12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudget12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjection12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetAdjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetAdjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionAdjusted12 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS01", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos01 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS02", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos02 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS03", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos03 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS04", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos04 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS05", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos05 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS06", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos06 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS07", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos07 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS08", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos08 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS09", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos09 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS10", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos10 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS11", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos11 { get; set; }
|
||||
|
||||
[Column("InitialBudgetDollarsPerUOS12", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetDollarsPerUos12 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS01", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos01 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS02", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos02 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS03", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos03 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS04", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos04 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS05", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos05 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS06", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos06 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS07", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos07 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS08", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos08 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS09", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos09 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS10", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos10 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS11", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos11 { get; set; }
|
||||
|
||||
[Column("InitialProjectionDollarsPerUOS12", TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionDollarsPerUos12 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted01", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted01 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted02", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted02 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted03", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted03 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted04", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted04 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted05", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted05 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted06", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted06 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted07", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted07 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted08", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted08 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted09", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted09 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted10", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted10 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted11", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted11 { get; set; }
|
||||
|
||||
[Column("TargetDollarsPerUOSAdjusted12", TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetDollarsPerUosadjusted12 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted01", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted01 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted02", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted02 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted03", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted03 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted04", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted04 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted05", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted05 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted06", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted06 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted07", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted07 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted08", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted08 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted09", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted09 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted10", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted10 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted11", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted11 { get; set; }
|
||||
|
||||
[Column("BudgetDollarsPerUOSAdjusted12", TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetDollarsPerUosadjusted12 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted01", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted01 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted02", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted02 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted03", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted03 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted04", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted04 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted05", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted05 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted06", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted06 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted07", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted07 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted08", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted08 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted09", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted09 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted10", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted10 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted11", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted11 { get; set; }
|
||||
|
||||
[Column("ProjectionDollarsPerUOSAdjusted12", TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionDollarsPerUosadjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialBudgetPercentOfCharge12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal InitialProjectionPercentOfCharge12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentOfChargeAdjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentOfChargeAdjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentOfChargeAdjusted12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal TargetPercentAdjustmentFactor12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BudgetPercentAdjustmentFactor12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal ProjectionPercentAdjustmentFactor12 { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("GeneralLedgers")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("GeneralLedgerInitialPlanConfigDetail", Schema = "fp")]
|
||||
public partial class GeneralLedgerInitialPlanConfigDetail
|
||||
{
|
||||
[Key]
|
||||
[Column("RowID")]
|
||||
public int RowId { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("AccountID")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
[Column("FinancialReportingID")]
|
||||
public int FinancialReportingId { get; set; }
|
||||
|
||||
[Column("VariabilityID")]
|
||||
public int VariabilityId { get; set; }
|
||||
|
||||
[Column("APEModelSectionID")]
|
||||
public int ApemodelSectionId { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("ProjectionMethodID")]
|
||||
public int ProjectionMethodId { get; set; }
|
||||
|
||||
public byte TrailingMonths { get; set; }
|
||||
|
||||
[Column("VersionID")]
|
||||
public int VersionId { get; set; }
|
||||
|
||||
[ForeignKey("BudgetConfigGuid")]
|
||||
[InverseProperty("GeneralLedgerInitialPlanConfigDetails")]
|
||||
public virtual BudgetConfig BudgetConfig { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "DepartmentId", "AccountId")]
|
||||
[Table("GeneralLedgerSpreads", Schema = "fp")]
|
||||
public partial class GeneralLedgerSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("AccountID")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("GeneralLedgerSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("InitialPlanRule", Schema = "fp")]
|
||||
public partial class InitialPlanRule
|
||||
{
|
||||
[Key]
|
||||
[Column("RowID")]
|
||||
public int RowId { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Column("PlanSectionID")]
|
||||
public int PlanSectionId { get; set; }
|
||||
|
||||
[Column("SubSectionID")]
|
||||
public int SubSectionId { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("DimensionalityJSON")]
|
||||
public string DimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column("ProjectionMethodID")]
|
||||
public int ProjectionMethodId { get; set; }
|
||||
|
||||
public byte TrailingMonths { get; set; }
|
||||
|
||||
public int RulePriority { get; set; }
|
||||
|
||||
[Column("VersionID")]
|
||||
public int? VersionId { get; set; }
|
||||
|
||||
[ForeignKey("BudgetConfigGuid")]
|
||||
[InverseProperty("InitialPlanRules")]
|
||||
public virtual BudgetConfig BudgetConfig { get; set; } = null!;
|
||||
}
|
||||
39
ef-migration/src/Strata.Code.DataAccess/Models/Lock.cs
Normal file
39
ef-migration/src/Strata.Code.DataAccess/Models/Lock.cs
Normal file
@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("Lock")]
|
||||
public partial class Lock
|
||||
{
|
||||
[Column("LockGUID")]
|
||||
public Guid LockGuid { get; set; }
|
||||
|
||||
[Column("ItemGUID")]
|
||||
public Guid ItemGuid { get; set; }
|
||||
|
||||
[Column("UserGUID")]
|
||||
public Guid UserGuid { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateLocked { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string LockGroup { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateLastActive { get; set; }
|
||||
|
||||
[StringLength(256)]
|
||||
public string UserName { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateLockedUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateLastActiveUtc { get; set; }
|
||||
}
|
||||
@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("OnePlanPerformanceTestValidationResult", Schema = "fp")]
|
||||
public partial class OnePlanPerformanceTestValidationResult
|
||||
{
|
||||
[Column("TestResultID")]
|
||||
public int TestResultId { get; set; }
|
||||
|
||||
[Column("PlanSectionID")]
|
||||
public int PlanSectionId { get; set; }
|
||||
|
||||
[Column("BasisID")]
|
||||
public int BasisId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string TableName { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string ColumnName { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal BeforeValue12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal AfterValue12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? Variance12 { get; set; }
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("PerformanceTestingSetting", Schema = "fp")]
|
||||
[Index("Name", Name = "IX_PerformanceTestingSetting_Unique", IsUnique = true)]
|
||||
public partial class PerformanceTestingSetting
|
||||
{
|
||||
[Key]
|
||||
[Column("SystemSettingID")]
|
||||
public int SystemSettingId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[StringLength(400)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public string Value { get; set; } = null!;
|
||||
|
||||
public bool IsEditable { get; set; }
|
||||
|
||||
public int ColumnType { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string DefaultValue { get; set; } = null!;
|
||||
|
||||
public bool IsEncrypted { get; set; }
|
||||
|
||||
public DateOnly DateCreated { get; set; }
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "ProviderId", "ProviderLineItemId", "DepartmentId", "JobCodeId", "PayCodeGroupId", "UnitTypeId")]
|
||||
[Table("ProviderCompensationSpreads", Schema = "fp")]
|
||||
public partial class ProviderCompensationSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ProviderID")]
|
||||
public int ProviderId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ProviderLineItemID")]
|
||||
public int ProviderLineItemId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("JobCodeID")]
|
||||
public int JobCodeId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("PayCodeGroupID")]
|
||||
public int PayCodeGroupId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("UnitTypeID")]
|
||||
public byte UnitTypeId { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("ProviderCompensationSpreads")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("ProviderCompensationSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("SamplingLog", Schema = "fp")]
|
||||
public partial class SamplingLog
|
||||
{
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
[Column("PlanSectionID")]
|
||||
public int PlanSectionId { get; set; }
|
||||
|
||||
[StringLength(300)]
|
||||
public string PlanSectionDescription { get; set; } = null!;
|
||||
|
||||
[Column("SourceDimensionalityJSON")]
|
||||
public string SourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column("DateStartedUTC", TypeName = "datetime")]
|
||||
public DateTime DateStartedUtc { get; set; }
|
||||
|
||||
[Column("DateEndedUTC", TypeName = "datetime")]
|
||||
public DateTime DateEndedUtc { get; set; }
|
||||
|
||||
public bool IsInitialPlanMethod { get; set; }
|
||||
|
||||
[Column("IsDSSampling")]
|
||||
public bool IsDssampling { get; set; }
|
||||
|
||||
public int NumberOfRecordsSampled { get; set; }
|
||||
|
||||
[StringLength(10)]
|
||||
public string JazzVersion { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("ScheduledRefreshRequest", Schema = "fp")]
|
||||
public partial class ScheduledRefreshRequest
|
||||
{
|
||||
[Key]
|
||||
[Column("RequestGUID")]
|
||||
public Guid RequestGuid { get; set; }
|
||||
|
||||
[Column("SourceDimensionalityJSON")]
|
||||
public string SourceDimensionalityJson { get; set; } = null!;
|
||||
|
||||
[Column("SourceActionID")]
|
||||
public short SourceActionId { get; set; }
|
||||
|
||||
public bool IsIgnoreTargetingError { get; set; }
|
||||
|
||||
[Column("EntityGroupConfigID")]
|
||||
public int EntityGroupConfigId { get; set; }
|
||||
|
||||
[Column("SamplingJSON")]
|
||||
public string SamplingJson { get; set; } = null!;
|
||||
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "EntityId", "ServiceLineId", "PatientClassId")]
|
||||
[Table("ServiceLineEncounterSpreads", Schema = "fp")]
|
||||
public partial class ServiceLineEncounterSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("EntityID")]
|
||||
public int EntityId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ServiceLineID")]
|
||||
public int ServiceLineId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("PatientClassID")]
|
||||
public int PatientClassId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("ServiceLineEncounterSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
[Table("SettingCategory", Schema = "fp")]
|
||||
public partial class SettingCategory
|
||||
{
|
||||
[Column("SettingCategoryID")]
|
||||
public int SettingCategoryId { get; set; }
|
||||
|
||||
[Column("CategoryID")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
[Column("SystemSettingID")]
|
||||
public int SystemSettingId { get; set; }
|
||||
|
||||
[Column("BudgetConfigDefaultSettingID")]
|
||||
public int BudgetConfigDefaultSettingId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("SpreadHistory", Schema = "fp")]
|
||||
public partial class SpreadHistory
|
||||
{
|
||||
[Key]
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[Column("AuthorGUID")]
|
||||
public Guid AuthorGuid { get; set; }
|
||||
|
||||
public string AuthorFullName { get; set; } = null!;
|
||||
|
||||
public byte[]? ExcelFile { get; set; }
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<BenefitsSpread> BenefitsSpreads { get; set; } = new List<BenefitsSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<ChargeVolumeSpread> ChargeVolumeSpreads { get; set; } = new List<ChargeVolumeSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<GeneralLedgerSpread> GeneralLedgerSpreads { get; set; } = new List<GeneralLedgerSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<ProviderCompensationSpread> ProviderCompensationSpreads { get; set; } = new List<ProviderCompensationSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<ServiceLineEncounterSpread> ServiceLineEncounterSpreads { get; set; } = new List<ServiceLineEncounterSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<StaffingSpread> StaffingSpreads { get; set; } = new List<StaffingSpread>();
|
||||
|
||||
[InverseProperty("SpreadHistory")]
|
||||
public virtual ICollection<StatisticsSpread> StatisticsSpreads { get; set; } = new List<StatisticsSpread>();
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("StaffingInitialPlanConfigDetail", Schema = "fp")]
|
||||
public partial class StaffingInitialPlanConfigDetail
|
||||
{
|
||||
[Key]
|
||||
[Column("RowID")]
|
||||
public int RowId { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigID")]
|
||||
public short BudgetConfigId { get; set; }
|
||||
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Column("JobCodeID")]
|
||||
public int JobCodeId { get; set; }
|
||||
|
||||
[Column("ProductiveClassID")]
|
||||
public int ProductiveClassId { get; set; }
|
||||
|
||||
[Column("PayCodeGroupID")]
|
||||
public int PayCodeGroupId { get; set; }
|
||||
|
||||
[Column("VariabilityID")]
|
||||
public int VariabilityId { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("UnitTypeID")]
|
||||
public byte UnitTypeId { get; set; }
|
||||
|
||||
[Column("EmployeeID")]
|
||||
public int EmployeeId { get; set; }
|
||||
|
||||
[Column("ProviderID")]
|
||||
public int ProviderId { get; set; }
|
||||
|
||||
[Column("ProviderLineItemID")]
|
||||
public int ProviderLineItemId { get; set; }
|
||||
|
||||
[Column("ProviderTypeID")]
|
||||
public int ProviderTypeId { get; set; }
|
||||
|
||||
[Column("ProviderSpecialtyID")]
|
||||
public int ProviderSpecialtyId { get; set; }
|
||||
|
||||
[Column("ProjectionMethodID")]
|
||||
public int ProjectionMethodId { get; set; }
|
||||
|
||||
public byte TrailingMonths { get; set; }
|
||||
|
||||
[Column("VersionID")]
|
||||
public int VersionId { get; set; }
|
||||
|
||||
[ForeignKey("BudgetConfigGuid")]
|
||||
[InverseProperty("StaffingInitialPlanConfigDetails")]
|
||||
public virtual BudgetConfig BudgetConfig { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "DepartmentId", "JobCodeId", "PayCodeGroupId")]
|
||||
[Table("StaffingSpreads", Schema = "fp")]
|
||||
public partial class StaffingSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("JobCodeID")]
|
||||
public int JobCodeId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("PayCodeGroupID")]
|
||||
public int PayCodeGroupId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("StaffingSpreads")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("StaffingSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[PrimaryKey("BudgetConfigId", "DepartmentId", "AccountId", "ProviderId", "ProviderLineItemId")]
|
||||
[Table("StatisticsSpreads", Schema = "fp")]
|
||||
public partial class StatisticsSpread
|
||||
{
|
||||
[Key]
|
||||
[Column("BudgetConfigID")]
|
||||
public int BudgetConfigId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("DepartmentID")]
|
||||
public int DepartmentId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("AccountID")]
|
||||
public int AccountId { get; set; }
|
||||
|
||||
public bool IsInactive { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage01 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage02 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage03 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage04 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage05 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage06 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage07 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage08 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage09 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage10 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage11 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? SpreadPercentage12 { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal? TotalImportedValue { get; set; }
|
||||
|
||||
[Column("SpreadHistoryGUID")]
|
||||
public Guid SpreadHistoryGuid { get; set; }
|
||||
|
||||
[Column("GlobalSpreadID")]
|
||||
public int GlobalSpreadId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ProviderID")]
|
||||
public int ProviderId { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("ProviderLineItemID")]
|
||||
public int ProviderLineItemId { get; set; }
|
||||
|
||||
[ForeignKey("DepartmentId")]
|
||||
[InverseProperty("StatisticsSpreads")]
|
||||
public virtual DimDepartment Department { get; set; } = null!;
|
||||
|
||||
[ForeignKey("SpreadHistoryGuid")]
|
||||
[InverseProperty("StatisticsSpreads")]
|
||||
public virtual SpreadHistory SpreadHistory { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("SystemSetting", Schema = "fp")]
|
||||
[Index("Name", Name = "IX_SystemSetting_Unique", IsUnique = true)]
|
||||
public partial class SystemSetting
|
||||
{
|
||||
[Key]
|
||||
[Column("SystemSettingID")]
|
||||
public int SystemSettingId { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[StringLength(400)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public string Value { get; set; } = null!;
|
||||
|
||||
public bool IsEditable { get; set; }
|
||||
|
||||
public int ColumnType { get; set; }
|
||||
|
||||
[StringLength(100)]
|
||||
public string DefaultValue { get; set; } = null!;
|
||||
|
||||
public bool IsEncrypted { get; set; }
|
||||
|
||||
public bool IsFeatureFlag { get; set; }
|
||||
|
||||
public DateOnly DateCreated { get; set; }
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("TEScheduledTask")]
|
||||
public partial class TescheduledTask
|
||||
{
|
||||
[Key]
|
||||
[Column("ScheduledTaskGUID")]
|
||||
public Guid ScheduledTaskGuid { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string Description { get; set; } = null!;
|
||||
|
||||
public int RepeatType { get; set; }
|
||||
|
||||
public int RepeatFrequency { get; set; }
|
||||
|
||||
public int DayOfWeek { get; set; }
|
||||
|
||||
public int DayOfMonth { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime EndDate { get; set; }
|
||||
|
||||
public bool HasEndDate { get; set; }
|
||||
|
||||
[Column("SetupXML")]
|
||||
public string SetupXml { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string AssemblyQualifiedName { get; set; } = null!;
|
||||
|
||||
public bool HasRun { get; set; }
|
||||
|
||||
public bool IsDisabled { get; set; }
|
||||
|
||||
public bool HasDisabledExpirationDate { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DisabledExpirationDate { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastRunDateUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastSubmittedDateUtc { get; set; }
|
||||
|
||||
public TimeOnly StartTime { get; set; }
|
||||
|
||||
[StringLength(50)]
|
||||
public string TimeZoneId { get; set; } = null!;
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Table("UserProfile")]
|
||||
[Index("UserName", Name = "IX_UserProfile", IsUnique = true)]
|
||||
public partial class UserProfile
|
||||
{
|
||||
[Key]
|
||||
[Column("UserGUID")]
|
||||
public Guid UserGuid { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string UserName { get; set; } = null!;
|
||||
|
||||
[StringLength(64)]
|
||||
public string HashedPassword { get; set; } = null!;
|
||||
|
||||
[StringLength(64)]
|
||||
public string NameFirst { get; set; } = null!;
|
||||
|
||||
[StringLength(64)]
|
||||
public string NameLast { get; set; } = null!;
|
||||
|
||||
[StringLength(130)]
|
||||
public string NameFull { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string EmailAddress { get; set; } = null!;
|
||||
|
||||
[StringLength(64)]
|
||||
public string PhoneNumber { get; set; } = null!;
|
||||
|
||||
[Column("IsSysAdmin_DEPRECATED")]
|
||||
public bool IsSysAdminDeprecated { get; set; }
|
||||
|
||||
[Column("AuthID")]
|
||||
[StringLength(128)]
|
||||
public string AuthId { get; set; } = null!;
|
||||
|
||||
public bool IsDisabled { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string BackupPassword { get; set; } = null!;
|
||||
|
||||
public byte DefaultAppModeLevel { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string BrowserVersion { get; set; } = null!;
|
||||
|
||||
[StringLength(512)]
|
||||
public string UserAgent { get; set; } = null!;
|
||||
|
||||
[StringLength(64)]
|
||||
[Unicode(false)]
|
||||
public string Domain { get; set; } = null!;
|
||||
|
||||
[Column("HIPAADisclaimerStatus")]
|
||||
public byte HipaadisclaimerStatus { get; set; }
|
||||
|
||||
[StringLength(450)]
|
||||
public string Custom1 { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string Custom2 { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string Custom3 { get; set; } = null!;
|
||||
|
||||
[StringLength(450)]
|
||||
public string Custom4 { get; set; } = null!;
|
||||
|
||||
public bool IsHidden { get; set; }
|
||||
|
||||
[StringLength(250)]
|
||||
public string DotNetVersion { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastChangedPasswordUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastLoginDateUtc { get; set; }
|
||||
|
||||
public Guid Salt { get; set; }
|
||||
|
||||
public bool NeedsPasswordChange { get; set; }
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
public partial class ViewReimbursementAdjustment
|
||||
{
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
public byte AdjustmentType { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value { get; set; }
|
||||
|
||||
[Column("AdjustmentFilterJSON")]
|
||||
public string AdjustmentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("GroupingHierarchyJSON")]
|
||||
public string GroupingHierarchyJson { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string AdjustedProperty { get; set; } = null!;
|
||||
|
||||
public string Comment { get; set; } = null!;
|
||||
|
||||
[Column("AuthorGUID")]
|
||||
public Guid AuthorGuid { get; set; }
|
||||
|
||||
[StringLength(260)]
|
||||
public string AuthorFullName { get; set; } = null!;
|
||||
|
||||
[Column("GroupingGUID")]
|
||||
public Guid GroupingGuid { get; set; }
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("ClassificationGroupID")]
|
||||
public int ClassificationGroupId { get; set; }
|
||||
|
||||
[Column("ClassificationCategoryID")]
|
||||
public int ClassificationCategoryId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastModifiedDateUtc { get; set; }
|
||||
|
||||
public string DimensionMemberJson { get; set; } = null!;
|
||||
|
||||
public int AffectedDataCount { get; set; }
|
||||
|
||||
[Column("UnitTypeID")]
|
||||
public byte UnitTypeId { get; set; }
|
||||
|
||||
public bool IsCarryForward { get; set; }
|
||||
|
||||
[Column("AdjustmentID")]
|
||||
public int AdjustmentId { get; set; }
|
||||
|
||||
[Column("BudgetPhaseID")]
|
||||
public byte BudgetPhaseId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
public partial class ViewStaffingAdjustment
|
||||
{
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
public byte AdjustmentType { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value { get; set; }
|
||||
|
||||
[Column("AdjustmentFilterJSON")]
|
||||
public string AdjustmentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("GroupingHierarchyJSON")]
|
||||
public string GroupingHierarchyJson { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string AdjustedProperty { get; set; } = null!;
|
||||
|
||||
public string Comment { get; set; } = null!;
|
||||
|
||||
[Column("AuthorGUID")]
|
||||
public Guid AuthorGuid { get; set; }
|
||||
|
||||
[StringLength(260)]
|
||||
public string AuthorFullName { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastModifiedDateUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column("UnitTypeID")]
|
||||
public byte UnitTypeId { get; set; }
|
||||
|
||||
[Column("GroupingGUID")]
|
||||
public Guid GroupingGuid { get; set; }
|
||||
|
||||
[Column("ParentFilterJSON")]
|
||||
public string ParentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("BudgetPhaseID")]
|
||||
public byte BudgetPhaseId { get; set; }
|
||||
|
||||
[Column("ClassificationGroupID")]
|
||||
public int ClassificationGroupId { get; set; }
|
||||
|
||||
[Column("ClassificationCategoryID")]
|
||||
public int ClassificationCategoryId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
public string DimensionMemberJson { get; set; } = null!;
|
||||
|
||||
[Column("AdjustmentID")]
|
||||
public int AdjustmentId { get; set; }
|
||||
|
||||
[Column("SubsectionID")]
|
||||
public int SubsectionId { get; set; }
|
||||
|
||||
public bool IsErrored { get; set; }
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Strata.Code.DataAccess.Models;
|
||||
|
||||
[Keyless]
|
||||
public partial class ViewStatisticsAdjustment
|
||||
{
|
||||
[Column("AdjustmentGUID")]
|
||||
public Guid AdjustmentGuid { get; set; }
|
||||
|
||||
[Column("BudgetConfigGUID")]
|
||||
public Guid BudgetConfigGuid { get; set; }
|
||||
|
||||
public byte AdjustmentType { get; set; }
|
||||
|
||||
[Column(TypeName = "decimal(18, 0)")]
|
||||
public decimal Value { get; set; }
|
||||
|
||||
[Column("AdjustmentFilterJSON")]
|
||||
public string AdjustmentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("GroupingHierarchyJSON")]
|
||||
public string GroupingHierarchyJson { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string AdjustedProperty { get; set; } = null!;
|
||||
|
||||
public string Comment { get; set; } = null!;
|
||||
|
||||
[Column("AuthorGUID")]
|
||||
public Guid AuthorGuid { get; set; }
|
||||
|
||||
[StringLength(260)]
|
||||
public string AuthorFullName { get; set; } = null!;
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime LastModifiedDateUtc { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime DateCreatedUtc { get; set; }
|
||||
|
||||
[Column("GroupingGUID")]
|
||||
public Guid GroupingGuid { get; set; }
|
||||
|
||||
[Column("ParentFilterJSON")]
|
||||
public string ParentFilterJson { get; set; } = null!;
|
||||
|
||||
[Column("TimeClassID")]
|
||||
public byte TimeClassId { get; set; }
|
||||
|
||||
[Column("BudgetPhaseID")]
|
||||
public byte BudgetPhaseId { get; set; }
|
||||
|
||||
[Column("ClassificationGroupID")]
|
||||
public int ClassificationGroupId { get; set; }
|
||||
|
||||
[Column("ClassificationCategoryID")]
|
||||
public int ClassificationCategoryId { get; set; }
|
||||
|
||||
public bool IsRecordDeleted { get; set; }
|
||||
|
||||
public string DimensionMemberJson { get; set; } = null!;
|
||||
|
||||
[Column("AdjustmentID")]
|
||||
public int AdjustmentId { get; set; }
|
||||
|
||||
[Column("SubsectionID")]
|
||||
public int SubsectionId { get; set; }
|
||||
|
||||
public bool IsErrored { get; set; }
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.1">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.1">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
64
ef-migration/tools/scaffold.bat
Normal file
64
ef-migration/tools/scaffold.bat
Normal file
@ -0,0 +1,64 @@
|
||||
@echo off
|
||||
cd ..\src\Strata.Code.DataAccess
|
||||
dotnet ef dbcontext scaffold^
|
||||
"Server=54.71.217.228,1433;Database=st-database;User=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"^
|
||||
Microsoft.EntityFrameworkCore.SqlServer^
|
||||
--project Strata.Code.DataAccess.csproj^
|
||||
--context-dir Data^
|
||||
--output-dir Models^
|
||||
--context OnePlanDbContext^
|
||||
--force^
|
||||
--data-annotations^
|
||||
--no-onconfiguring^
|
||||
-t fp.AddProviderEncountersDataForCharges^
|
||||
-t fp.AddProviderSummary^
|
||||
-t fp.AdjustmentChunkingConfiguration^
|
||||
-t fp.APEDepartmentWorkflowStatus^
|
||||
-t fp.APEWorkflow^
|
||||
-t fp.BenefitsSpreads^
|
||||
-t fp.BudgetConfig^
|
||||
-t fp.BudgetConfigDefaultSetting^
|
||||
-t fp.BudgetConfigSetting^
|
||||
-t fp.BudgetRefreshRequest^
|
||||
-t fp.BudgetRefreshRequestHistory^
|
||||
-t fp.ChargeVolumeAddProviderAdjustment^
|
||||
-t fp.ChargeVolumeSpreads^
|
||||
-t fp.DataRefreshTargetThreshold^
|
||||
-t fp.DepartmentChargeVolumeAdjustment^
|
||||
-t fp.DepartmentConfig^
|
||||
-t fp.DimCategory^
|
||||
-t fw.DimDepartment^
|
||||
-t dss.DimPhysician^
|
||||
-t fp.EngineLog^
|
||||
-t fp.EntityGroupConfig^
|
||||
-t fp.FixChangeHistoryRequest^
|
||||
-t fp.GeneralLedger^
|
||||
-t fp.GeneralLedgerInitialPlanConfigDetail^
|
||||
-t fp.GeneralLedgerSpreads^
|
||||
-t fp.InitialPlanRule^
|
||||
-t dbo.LOCK^
|
||||
-t dbo.log^
|
||||
-t dbo.OnePlanPerformanceTestHistory^
|
||||
-t fp.OnePlanPerformanceTestValidationResult^
|
||||
-t fp.PerformanceTestingSetting^
|
||||
-t fp.ProviderCompensationSpreads^
|
||||
-t fp.SamplingLog^
|
||||
-t fp.ScheduledRefreshRequest^
|
||||
-t fp.ServiceLineEncounterSpreads^
|
||||
-t fp.SettingCategory^
|
||||
-t fp.SpreadHistory^
|
||||
-t fp.StaffingInitialPlanConfigDetail^
|
||||
-t fp.StaffingSpreads^
|
||||
-t fp.StatisticsSpreads^
|
||||
-t fp.SystemSetting^
|
||||
-t dbo.TEScheduledTask^
|
||||
-t dbo.UserProfile^
|
||||
-t fp.viewBenefitsAdjustment^
|
||||
-t fp.viewDepartmentChargeVolumeAdjustment^
|
||||
-t fp.viewGeneralLedgerAdjustment^
|
||||
-t fp.viewReimbursementAdjustment^
|
||||
-t fp.viewReimbursementGeneralLedgerAdjustment^
|
||||
-t fp.viewServiceLineEncounterAdjustment^
|
||||
-t fp.viewStaffingAdjustment^
|
||||
-t fp.viewStatisticsAdjustment
|
||||
pause
|
||||
Loading…
Reference in New Issue
Block a user