25
Production and Sales Database System Brief

Beaureguard Vineyards project

Embed Size (px)

Citation preview

Page 1: Beaureguard Vineyards project

Production and Sales Database System Brief

Page 2: Beaureguard Vineyards project

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

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

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

System Use Case Diagram

Page 6: Beaureguard Vineyards project

System Entity Relationship Diagram

Production Sales

Page 7: Beaureguard Vineyards project

Production ERD

Sales

Page 8: Beaureguard Vineyards project

Sales ERD

Production

Page 9: Beaureguard Vineyards project

Production Table Samples

vendor rawmaterials

Page 10: Beaureguard Vineyards project

Production Table Samples

rawmaterials

Grape

Juice

Bottle

Page 11: Beaureguard Vineyards project

Production Table Samples

Grape

Juice

Juice_production

Page 12: Beaureguard Vineyards project

Production Table Samples

Juice

Bottle

Wine_production

Page 13: Beaureguard Vineyards project

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

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

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

Procedure Example

Choose a barrel to produce into wine

Begin

manufacture(3213);

end;

Inserts x 10

Updates

Updates

Page 17: Beaureguard Vineyards project

Procedure Example

Stock Product Begin

stockproduct(5550);

end;

Updates

Deletes

Deletes

Page 18: Beaureguard Vineyards project

Sales Table Samples

Page 19: Beaureguard Vineyards project
Page 20: Beaureguard Vineyards project

Orders Order details

Customer

Page 21: Beaureguard Vineyards project

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

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

Procedure examples

Trigger for low stock

inventory

Page 24: Beaureguard Vineyards project

Procedure when customer places an order and stock in

inventory gets deducted.

Page 25: Beaureguard Vineyards project

• 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