beaureguard vineyards project

Post on 15-Aug-2015

77 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Production and Sales Database System Brief

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

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.

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

System Use Case Diagram

System Entity Relationship Diagram

Production Sales

Production ERD

Sales

Sales ERD

Production

Production Table Samples

vendor rawmaterials

Production Table Samples

rawmaterials

Grape

Juice

Bottle

Production Table Samples

Grape

Juice

Juice_production

Production Table Samples

Juice

Bottle

Wine_production

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

Procedure Example

Barrel juice in raw materials HouseFrenchJuice (4);

HouseAmericanJuice (6);

HouseHungarianJuice (8);

VendorFrenchJuice (5);

VendorAmericanJuice (7);

VendorHungarianJuice (9);

Updates

Inserts

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

Procedure Example

Choose a barrel to produce into wine

Begin

manufacture(3213);

end;

Inserts x 10

Updates

Updates

Procedure Example

Stock Product Begin

stockproduct(5550);

end;

Updates

Deletes

Deletes

Sales Table Samples

Orders Order details

Customer

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

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

Procedure examples

Trigger for low stock

inventory

Procedure when customer places an order and stock in

inventory gets deducted.

• 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

top related