Pizza Ordering System - Relational Database Architecture

IFT 200: Conceptual Database Design | Full Engineering Lifecycle Case Study

📋 Phase 1: Conceptual Design & Requirements Mapping (Lab 2)

The development cycle initiated by decomposing a complex retail food business prompt into core structural business entities. Cardinality and relationship parameters were isolated to define exactly how systemic objects interact before physical schema generation began.

  • Customer to Order (1:N): Established that an individual customer can place one or more orders over time, but every individual order ticket traces back to exactly one specific customer registry anchor.
  • Order to Pizza (N:M Associative Mapping): Determined that a single order ticket can contain multiple pizza items, and identical pizza configurations appear across numerous distinct orders. This required designing a dedicated associative entity to break down the many-to-many link.
Lab 2 Conceptual ER Diagram

📐 Phase 2: Enhanced ERD & Schema Normalization (Lab 4)

To eliminate data redundancy, avoid update anomalies, and enforce clean referential boundaries, the conceptual layout was refactored into an Enhanced Entity-Relationship Diagram (EERD) utilizing advanced supertype/subtype relationships:

  • The Customer Union Hierarchy: Developed a parent CUSTOMERS supertype (Primary Key: Customer_ID) that branches out into distinct INDIVIDUAL and CORPORATE subtype entities via strict foreign key inheritance pathways.
  • The Polymorphic Food Item Schema: Engineered a master FOOD_ITEM supertype containing base pricing tables, driving specialized sub-tables for PIZZA (tracking crust and type), BREADSTICKS (tracking flour configurations), and SODA (tracking sugar measurements).
  • The Associative Resolution Grid: Implemented ORDER_DETAIL as a robust mapping table, joining Order_ID and Item_ID into a composite primary key to record the localized size and quantity metrics of every single line item.
Lab 4 Enhanced EERD Supertype Subtype Mapping

💻 Phase 3: Physical DDL Implementation & Database Scripts

The normalized EER diagram blueprints were compiled into raw SQL Data Definition Language (DDL) deployment scripts inside a Microsoft SQL Server environment, manually building table topologies and structural constraints:

  • Enforcing Referential Integrity: Authored schema declaration statements defining explicit PRIMARY KEY constraints alongside cascading FOREIGN KEY ... REFERENCES keys to safeguard downstream database dependencies.
  • Securing Payment Type Tracks: Configured an independent PAYMENT_TYPE supertype tracking branch relationships into specialized, inherited tables for CASH and CREDIT_CARD processing records.
SQL Server Table Schema DDL Scripts

⚡ Phase 4: Programmatic Data Manipulation & System Audits (Lab 9)

With the database tables compiled, programmatic interactions were deployed using Python's pyodbc driver to connect seamlessly with the TheCamper local server workstation instance hosting the PizzaOrderingSystem relational database. Scripts were written to handle both structured transactional adjustments and deep database discovery routines:

  • Sanitized Multi-Table Insertions: Built parameterized transaction blocks to safely record incoming customer acquisitions. The script pushes data parameters concurrently into dbo.Customers and dbo.Individual before triggering a secure conn.commit() event.
  • Relational Validation JOIN Queries: Implemented an immediate programmatic verification script using inner JOIN syntax on matching CustomerID keys, confirming transactional validity instantly down the line.
  • Automated Schema Iteration Scanner: Programmed a global diagnostic script loading all active system tables into a structured array. The script uses an operational loop to iterate through every schema asset, executing dynamic queries and fetching tuples to dump database registers directly into logs.
Python pyodbc Multi-Table Transaction Insertion Scripts
Python pyodbc Automated Database Schema Iteration Logs

🛠️ Technical Core Skills Featured

IFT 200 Database Curriculum Enhanced Entity-Relationship Diagrams (EERD) Third Normal Form (3NF) Normalization Microsoft SQL Server Architecture Data Definition Language (DDL) Data Manipulation Language (DML) Multi-Table Relational JOIN Queries Python pyodbc Driver Integration Database Audit Loop Engineering

Deployment Architecture Status

This comprehensive relational backend system was designed, mapped, normalized, and deployed across local workstation environments to meet full academic criteria.

💻 Local Workstation Environment Deployment Verified