How vaibhavviii01/eggshell-home-builder-rdbms-system works
Purpose and Entry Point
Eggshell Home Builder is an Oracle RDBMS implementation for managing residential development, sales, buyer selections, and construction progress. The executable database definition and operational logic are centralized in G1_eggshell (1).sql; supporting usage/reporting SQL is in G1_userguide_code.sql.
Core Relational Model
The schema models the builder’s core business entities: subdivisions and lots, house styles, buyers, financing/banks, contracts and sales, construction stages/progress, decorator choices, and school-district context. The design intent and entity semantics are documented in G1_ERD.docx and G1_entity_description_document.docx.
Asset and Inventory Domain
Subdivision, lot, and house-style records establish the inventory available for sale and construction. Lot status is a critical boundary: a lot must remain available until sale/contract processing succeeds, and database constraints/triggers prevent duplicate sale of the same lot.
• G1_eggshell (1).sql
• G1_ERD.docx
Sales and Contract Lifecycle
Buyer, bank, contract, and sales data form the commercial workflow. Contract pricing is calculated from the selected home/lot plus dynamically priced buyer options. The PL/SQL package g1_eggshellHomebuilder_pkg encapsulates this business logic rather than leaving calculations solely to clients.
• G1_eggshell (1).sql
• G1_userguide_code.sql
Construction and Customization Workflow
Construction is represented as stage-based progress associated with a sold/contracted home. Buyer decorator/customization choices feed into the contract and construction lifecycle. Controlled stage updates are handled through packaged PL/SQL operations, separating workflow enforcement from direct table manipulation.
• G1_eggshell (1).sql
• G1_object_description_document.docx
Integrity, Access, and Performance Boundaries
Oracle triggers enforce financial and inventory invariants, including preventing negative financial values and double-selling lots. Role-based access separates Sales Manager and Construction Manager capabilities. Sequences provide database-generated identifiers; indexes support frequent lookup paths. School-district data is intentionally denormalized for retrieval performance.
• G1_eggshell (1).sql
Reporting and Runtime Infrastructure
The runtime is Oracle Database with SQL and PL/SQL. Oracle DBMS_SCHEDULER automates daily construction-progress reporting, making scheduled reporting a database-side operational process rather than an external application service.
• G1_eggshell (1).sql
• G1_userguide_code.sql
Documentation Artifacts
The repository includes the logical ERD, entity definitions, and object-level descriptions needed to interpret the SQL implementation and its database objects.
• G1_ERD.docx
• G1_entity_description_document.docx
• G1_object_description_document.docx
Main entry points: G1_eggshell (1).sql Contracts & Sales · G1_userguide_code.sql Usage & Reporting SQL · G1_ERD.docx Logical ERD · G1_entity_description_document.docx Entity Definitions
Components 16
Oracle Schema
Core residential-builder data model and database logic.
- Database Definition · Creates schema objects, constraints, triggers, package, roles, and scheduler job.
G1_eggshell (1).sql - Inventory · Subdivisions, lots, house styles, and denormalized school-district context.
G1_eggshell (1).sql - Lot Availability · Lots remain available until a sale succeeds.
G1_eggshell (1).sql - Buyers & Financing · Buyer and bank records supporting sales.
G1_eggshell (1).sql - Contracts & Sales · Commercial records for contracted and sold homes.
G1_eggshell (1).sql - Decorator Choices · Buyer options with dynamic pricing.
G1_eggshell (1).sql - Construction Progress · Stage-based progress for sold or contracted homes.
G1_eggshell (1).sql
Database Operations
Controlled workflows, access, and scheduled reporting.
- Home Builder Package · Encapsulates contract pricing and controlled stage updates.
G1_eggshell (1).sql - Integrity Triggers · Prevent negative financial values and duplicate lot sales.
G1_eggshell (1).sql - Identifier Sequences · Generate database identifiers.
G1_eggshell (1).sql - Manager Roles · Separates Sales Manager and Construction Manager capabilities.
G1_eggshell (1).sql - Daily Progress Reporting · Automates daily construction-progress reporting.
G1_eggshell (1).sql - Usage & Reporting SQL · Operational examples and reporting queries.
G1_userguide_code.sql
Documentation
Model and object reference artifacts.
- Logical ERD · Documents entity relationships and design intent.
G1_ERD.docx - Entity Definitions · Defines schema entity semantics.
G1_entity_description_document.docx - Object Descriptions · Describes database objects and operations.
G1_object_description_document.docx
Connections 25
- Database Definition → Inventory: defines
- Database Definition → Buyers & Financing: defines
- Database Definition → Contracts & Sales: defines
- Database Definition → Decorator Choices: defines
- Database Definition → Construction Progress: defines
- Inventory → Lot Availability: tracks
- Lot Availability → Contracts & Sales: allows sale
- Buyers & Financing → Contracts & Sales: supports
- Inventory → Contracts & Sales: provides home and lot
- Decorator Choices → Contracts & Sales: prices options
- Contracts & Sales → Construction Progress: initiates
- Home Builder Package → Contracts & Sales: calculates pricing
- Home Builder Package → Construction Progress: controls stage updates
- Integrity Triggers → Lot Availability: prevents double sale
- Integrity Triggers → Contracts & Sales: enforces financial rules
- Identifier Sequences → Inventory: generates IDs
- Identifier Sequences → Contracts & Sales: generates IDs
- Manager Roles → Home Builder Package: governs use
- Daily Progress Reporting → Construction Progress: reports progress
- Usage & Reporting SQL → Home Builder Package: uses
- Usage & Reporting SQL → Daily Progress Reporting: supports reporting
- Logical ERD → Inventory: documents
- Logical ERD → Contracts & Sales: documents
- Entity Definitions → Database Definition: defines semantics
- Object Descriptions → Home Builder Package: describes