
🏗️ Construction · Database ERD
Tables for a construction project system: projects, sites, work packages, subcontractors, materials, daily logs and payments.
Drawing diagram…
Construction project database: projects have sites and work packages (foundation, structure, MEP, finishing) with budgets; subcontractors are assigned to packages; materials are requisitioned and delivered to sites; daily logs record manpower, weather and progress; measurement bills (running account bills) are raised by subcontractors and paid.
erDiagram
PROJECT ||--|{ SITE : has
PROJECT ||--|{ WORK_PACKAGE : "divided into"
SUBCONTRACTOR ||--o{ WORK_PACKAGE : executes
SITE ||--o{ MATERIAL_DELIVERY : receives
MATERIAL ||--o{ MATERIAL_DELIVERY : "delivered as"
SITE ||--o{ DAILY_LOG : records
WORK_PACKAGE ||--o{ RA_BILL : "billed via"
RA_BILL ||--o{ PAYMENT : "paid by"
PROJECT {
int id PK
string name
decimal budget
}
SITE {
int id PK
int project_id FK
string address
}
WORK_PACKAGE {
int id PK
int project_id FK
int subcontractor_id FK
string name
decimal budget
}
SUBCONTRACTOR {
int id PK
string name
string trade
}
MATERIAL {
int id PK
string name
string unit
}
MATERIAL_DELIVERY {
int id PK
int site_id FK
int material_id FK
decimal quantity
date delivered_on
}
DAILY_LOG {
int id PK
int site_id FK
date log_date
int manpower
string weather
}
RA_BILL {
int id PK
int work_package_id FK
decimal measured_value
string status
}
PAYMENT {
int id PK
int ra_bill_id FK
decimal amount
date paid_on
}A typical schedule for building an independent house, from approvals and foundation to finishing and handover.
How a building project moves through the local authority: plan approval, stage inspections during construction, and the occupancy certificate.
How a construction site orders materials: site request, quotes from suppliers, purchase order, delivery, quality check and payment.
A platform for running building projects: schedules, site diaries, drawings, RFIs, quality and safety checklists, and billing.
How building information modelling (BIM) data flows between designers, contractors and the owner: coordination, clash detection, quantities and handover.
A daily safety inspection routine on a construction site: checklists, hazard reporting, stop-work authority and follow-up.