https://github.com/mhtkarakose/se-222-database-systems-term-project
Term Project sql
https://github.com/mhtkarakose/se-222-database-systems-term-project
database plpgsql restaurant
Last synced: 5 months ago
JSON representation
Term Project sql
- Host: GitHub
- URL: https://github.com/mhtkarakose/se-222-database-systems-term-project
- Owner: mhtkarakose
- Created: 2017-05-07T15:58:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T13:41:51.000Z (about 9 years ago)
- Last Synced: 2025-01-09T06:15:15.370Z (over 1 year ago)
- Topics: database, plpgsql, restaurant
- Language: PLpgSQL
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Welcome !
===================
Hey! This document is my term proejct. Please be sure to inform us of any errors you found in the codes.
Project Aim
-------
Project aim is creating affordable online ordering system for small restaurant SMEs.
Project name is Online Ordering System for Restaurants.
----------
Documents
-------------
Conceptual Diagram

Logical Model

#### Create a database
CREATE DATABASE OrderingSystemDb;
The necessary codes have been added.
#### Procedures
* Customer_ReadAll
All customers print on the screen.
How does it work?
exec Customer_ReadAll;
* Customer_ReadById
Writes the selected customer information to the screen.
How does it work?
exec Customer_ReadById [Enter the int DustomerId];
* Customer_Add
Add customer :)
How does it work?
exec Customer_Add(@Id,
@Email,
@CustomerPass,
@Name,
@SecondName,
@Surname)
* Customer_Add_Address
The address information of the customer is entered in the address table.
How does it work?
exec Customer_Add_Address(@Id,
@CustomerId,
@AddressName,
@AddressDescription
)
* Customer_ReadAll_Address
All customer addresses on the screen.
How does it work?
exec Customer_ReadAll_Address;
* Customer_ReadById_Address
The selected customer addresses are displayed on the screen.
How does it work?
exec Customer_ReadById_Address [Enter the int CustomerId];
* Customer_Bill
The invoice belongs to the selected customer.
How does it work?
exec Customer_Bill[Enter the int CustomerId];
* Product_Add
Adding products to the system.
How does it work?
exec Product_Add(@ProductId,
@CategoryId,
@ProductName,
@ProductDescription,
@ProductPrice,
@ProductCalorie,
@Stock)
;
#### Triggers
* Stock_Takip
Stocks for each product ordered are replaced.
* TotalPrice
It subtracts the total price of the ordered product to the customer bill.
#### Team
Mehmet KARAKOSE,
Yağız Ismail GAZIBABA