Two shops.
One memory.
SouthCap for Spoke&Co · Database and app design · LLSMF2901 · Group DB9 · 7 December 2026
Three problems, one cause: the shops share nothing.
Two apps, one database.
Staff app · the two shops
Orders
Repairs
Rentals
Stock and transfers
Suppliers
Customer app
Order online
Book a bike
Follow a repair
One Oracle database
28
tables
60 foreign keys
96 checks
iStar: every dependency goes through the website.
Strategic Dependency
1
Strategic Rationale · Website
2
Relational model
28 tables, one colour per family.
Zoom 1 / 2 · P1
One catalogue, one stock table.
PRIMARY KEY (STORE_ID, ITEM_ID)
Zoom 2 / 2 · P2
An order, its lines, its delivery.
CHECK (QTY_RESERVED <= QTY_AVAILABLE)
Rules in the database
The database refuses what the business forbids.
96 CHECK constraints
1 compound triggerno bike booked twice
11 PL/SQL packages
Three core processes, filmed in the app.
Stock between the shops, and from the suppliers.
15 forms, 15 master-details, 27 reports.
Staff app · page 24, Suppliers and their orders
Master · SUPPLIER
↓ SUPPLIER_ORDER.SUPPLIER_ID the foreign key filters the detail
Detail · SUPPLIER_ORDER of the selected supplier
15 forms
15 master-details
27 reports
Tested 36/36 button checks · 13 audit bugs fixed · 0 invalid objects
Three queries behind the screens.
Who did what.
R does the work A answers for it C consulted I informed
From model to running system
Questions?
P1 one stock · P2 reserved at order · P3 status online