All core schemas
HRDB, PayrollDB, and CareerFocusDB in one correctly separated workspace.
- Objects
- 10,107
- Size
- 15.0 MB
Database schemas · Internal confidential
Download the scripted HRDB/MyFocus, PayrollDB, and CareerFocusDB definitions for dependency tracing, comparisons, tests, tax and leave analysis, and implementation planning.
Choose a package
Use the combined package when tracing shared or cross-database behaviour.
HRDB, PayrollDB, and CareerFocusDB in one correctly separated workspace.
Employee, compensation, organisation, workflow, notifications, Report Portal, and leave calculation definitions.
Payroll processing, tax calculation, tax configuration, reporting, and current HRDB-linked view definitions.
CareerFocus definitions and shared platform objects used for comparison with the MyFocus parent implementation.
Before extraction
Compare the calculated SHA-256 value with the package manifest. A mismatch means the file must not be used.
$zip = '.\HRFocus-Database-Schemas-All.zip'
$manifest = Import-Csv '.\Database-Schema-Package-Manifest.csv'
$expected = ($manifest | Where-Object Package -eq (Split-Path $zip -Leaf)).SHA256
$actual = (Get-FileHash -Algorithm SHA256 -LiteralPath $zip).Hash
if ($actual -ne $expected) { throw 'Database schema package checksum mismatch.' }
D903DED98A51962CCCF5485E8B2A948F3CB49C9D97D3AEE98C8AEEE15DCB83D7D60AD6F17FAE5B3A618CC93B5F45049301332B59BBE9E89D12FBACB6F286E605EAEDD2692878E5AD99549F4B25C31ABD555DE4D5D61EF196887F31647CC999D3FDDF410193D2CBF91B5981C3E8D71B07FAA67F7C4E031D66BDAED54C0482FD76Developer setup
Keep the databases separate and open their common parent folder as the workspace.
C:\Development\HRFocus-Databases, outside an application repository.HRFocus-Databases in Codex or the approved editor so skills can trace cross-database references.$projectRoot = 'C:\Development\HRFocus-Databases'
New-Item -ItemType Directory -Path $projectRoot -Force | Out-Null
Expand-Archive -LiteralPath '.\HRFocus-Database-Schemas-All.zip' `
-DestinationPath $projectRoot -Force
HRFocus-Databases/
├── HRDB/
├── PayrollDB/
└── CareerFocusDB/
Codex and skill context
Include the schema root, authority, comparison boundary, and whether the task is analysis-only.
Use PayrollDB as the primary schema and HRDB only for cross-database dependencies. Trace the tax calculation entry procedure, all called functions and procedures, and every tax table read or written. Analyse only and cite exact files and lines.
Compare the Report Portal definitions in HRDB, PayrollDB, and CareerFocusDB. Treat HRDB/MyFocus as the parent implementation and report material differences without changing files.
Use $build-hrfocus-database-package with these schema definitions as the baseline. Create only the approved changes as an ordered, rerunnable SQL Server 2016 package with verification and rollback guidance.
Important deployment boundary
The ZIPs describe current object definitions. They are not ordered migration packages, do not contain rollback logic, and may contain objects that are intentionally different between solutions.
Hub publication
The governed source includes these pages, packages, manifests, tools, and all existing Development Resources content.
Run the website packager from the hub source. Verify the generated SHA-256 manifest before extraction.
Download packaging scriptExtract the deployment ZIP to a staging folder. Back up the current site and compare staged files with the IIS target before copying.
Use an internal IIS application with Static Content and ASP.NET 4.8. Keep Windows/internal authentication in place and retain the included web.config.
If Admin is enabled, apply only the documented application-pool permissions. Test this Databases page, every ZIP, checksums, search, filters, and administration.
& '.\00 Administration\006 - Package Development Resources Website.ps1'
& '.\00 Administration\Validate-DeveloperResources.ps1'
# Output:
# .\04 Templates and Tools\Website Deployment\Packages\
# HRFocus-Development-Resources-Website.zip
# Website-Deployment-Package-Manifest.csv
Deployment scope: Copy the contents of the ZIP’s top-level DeveloperResources folder into the IIS application root. This publishes the resource website; it does not change any SQL Server database.
Next maturity step
Use one repository with separate HRDB, PayrollDB, and CareerFocusDB SQL projects. Establish a reviewed snapshot baseline first, then add SQL Server 2016 builds, explicit cross-database references, pull-request review, drift detection, and regression tests for critical tax and leave calculations. Automated database extracts should open a branch or pull request; they should never overwrite the reviewed main branch.