beaureguard vineyards project
TRANSCRIPT
![Page 1: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/1.jpg)
Production and Sales Database System Brief
![Page 2: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/2.jpg)
System Brief Overview
1. Introduction to Beauregard Vineyards
2. System Requirements
3. System Entity Relationship Diagram
4. Production Tables
5. Production Procedures
6. Sales Tables
7. Sales Procedures
8. Potential Additions and Implementation
![Page 3: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/3.jpg)
Introduction
Beauregard Vineyards is small vineyard that
produces their own wines and sells to the public.
Although they grow their own grapes, and produce
their own juice, they are still subjected to variable
growing seasons. This means when they do not have
enough to meet wine production demands they
supplement raw materials with grape and wine
vendors.
![Page 4: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/4.jpg)
System Requirements
Raw materials inventory
Track the creation of grapes into juice
Track the barreling of juice
Signal when a barrel of juice has fermented
Track the bottling of wine from a barrel
Update product inventory
Customer orders and membership discounts
![Page 5: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/5.jpg)
System Use Case Diagram
![Page 6: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/6.jpg)
System Entity Relationship Diagram
Production Sales
![Page 7: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/7.jpg)
Production ERD
Sales
![Page 8: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/8.jpg)
Sales ERD
Production
![Page 9: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/9.jpg)
Production Table Samples
vendor rawmaterials
![Page 10: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/10.jpg)
Production Table Samples
rawmaterials
Grape
Juice
Bottle
![Page 11: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/11.jpg)
Production Table Samples
Grape
Juice
Juice_production
![Page 12: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/12.jpg)
Production Table Samples
Juice
Bottle
Wine_production
![Page 13: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/13.jpg)
Production Procedure Function List
Barrel juice in raw materials
House and vendor variants of French, American, and
Hungarian
Produce and barrel juice from raw material grapes
Grapes produce French, American, and Hungarian
barreled wine
Choose a barrel to produce into wine
Stock the wine into inventory
![Page 14: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/14.jpg)
Procedure Example
Barrel juice in raw materials HouseFrenchJuice (4);
HouseAmericanJuice (6);
HouseHungarianJuice (8);
VendorFrenchJuice (5);
VendorAmericanJuice (7);
VendorHungarianJuice (9);
Updates
Inserts
![Page 15: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/15.jpg)
Procedure Example
Produce and barrel juice from raw material grapes BarrelRedFrench(200);
BarrelRedAmerican(200);
BarrelRedAmerican(200);
BarrelWhiteFrench(200);
BarrelWhiteAmerican(200);
BarrelWhiteAmerican(200);
BarrelRoseFrench(200);
BarrelRoseAmerican(200);
BarrelRoseAmerican(200);
Updates
Updates Inserts
Inserts
![Page 16: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/16.jpg)
Procedure Example
Choose a barrel to produce into wine
Begin
manufacture(3213);
end;
Inserts x 10
Updates
Updates
![Page 17: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/17.jpg)
Procedure Example
Stock Product Begin
stockproduct(5550);
end;
Updates
Deletes
Deletes
![Page 18: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/18.jpg)
Sales Table Samples
![Page 19: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/19.jpg)
![Page 20: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/20.jpg)
Orders Order details
Customer
![Page 21: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/21.jpg)
Sales Functions
Wine selection by customer name
Customers who want the order within a certain
date.
Function to track the order of the customers, price,
quantity and type of product
Customers who purchased a particular type of
product
Trigger to alert low stock in inventory
![Page 22: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/22.jpg)
Trigger to call the vendor when the raw materials
stock goes below 5
SQL query to calculate discounted price for member
customers
Procedure, when a customer places an order, the
quantity in the inventory will be reduced
accordingly
![Page 23: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/23.jpg)
Procedure examples
Trigger for low stock
inventory
![Page 24: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/24.jpg)
Procedure when customer places an order and stock in
inventory gets deducted.
![Page 25: Beaureguard Vineyards project](https://reader035.vdocuments.net/reader035/viewer/2022062320/55cea013bb61ebbc4d8b458a/html5/thumbnails/25.jpg)
• User Interface
•Public facing website for
orders
•Point of sale for employees in
store
•Work Schedules
•Accounting System
•Payroll
•Asset Management
•Inventory Accounting
•Raw Material Accounting
Future Additions and Implementation