Restaurant Management System Database Schema: Inventory
Restaurant Management System Database Schema: Inventory
Database Schema
Inventory
Item Name, Price, Quantity, Min Threshold
Menu
Dish Name, Estimated time, Type of Dish, Price
MenuItems
Dish Name, (Inventory) Item Name, Quantity (Used)
Order
OrderID, TableID, Timestamp, Status
OrderDetails
OrderID, DishID/Dish name, Estimated Time, Priority(1/0), Status, Quantity(Servings per Dish)
Employee
Employee ID, Name, Specialty (For Chef Only), Type (Waiter/Chef/Manager), Availability status,
Salary
Table
Table ID, Status, Capacity
Tablet
Tablet ID, Status
Assignment
Employee ID (Employee), Table ID (Table), Tablet ID (Tablet)
Notification
Item Name, Time, read (true/false)
-------------------------------------------------------------------------------------------------------------------------------
--
-- Database: `restaurant`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
-- --------------------------------------------------------
--
-- Table structure for table `company`
--
--
-- Dumping data for table `company`
--
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
--
-- Dumping data for table `groups`
--
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
-- --------------------------------------------------------
--
-- Table structure for table `order_items`
--
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
-- --------------------------------------------------------
--
-- Table structure for table `stores`
--
-- --------------------------------------------------------
--
-- Table structure for table `tables`
--
--
-- Table structure for table `users`
--
--
-- Dumping data for table `users`
--
-- --------------------------------------------------------
--
-- Table structure for table `user_group`
--
--
-- Dumping data for table `user_group`
--
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `company`
--
ALTER TABLE `company`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `groups`
--
ALTER TABLE `groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_items`
--
ALTER TABLE `order_items`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `stores`
--
ALTER TABLE `stores`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tables`
--
ALTER TABLE `tables`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_group`
--
ALTER TABLE `user_group`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `company`
--
ALTER TABLE `company`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `order_items`
--
ALTER TABLE `order_items`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stores`
--
ALTER TABLE `stores`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tables`
--
ALTER TABLE `tables`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `user_group`
--
ALTER TABLE `user_group`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
phpMyAdmi
n SQL
Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 11, 2014 at 10:25 PM
-- Server version: 5.6.14
-- PHP Version: 5.5.6
--
-- Database: `oose`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
--
-- Dumping data for table `category`
--
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
-- --------------------------------------------------------
--
-- Table structure for table `floorplan`
--
--
-- Dumping data for table `floorplan`
--
--
-- Table structure for table `item`
--
--
-- Dumping data for table `item`
--
--
-- Table structure for table `orders`
--
--
-- Dumping data for table `orders`
--