-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 14, 2020 at 06:30 AM
-- Server version: 5.7.24
-- PHP Version: 7.2.11

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `montzo_manufacture`
--

-- --------------------------------------------------------

--
-- Table structure for table `WorkstationCosts`
--

DROP TABLE IF EXISTS `WorkstationCosts`;
CREATE TABLE `WorkstationCosts` (
  `id` int(11) NOT NULL,
  `costMasterId` int(11) NOT NULL,
  `workstationId` int(11) NOT NULL,
  `costPerHour` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `WorkstationCosts`
--

INSERT INTO `WorkstationCosts` (`id`, `costMasterId`, `workstationId`, `costPerHour`) VALUES
(1, 1, 1, 1),
(2, 2, 1, 50),
(3, 3, 1, 10),
(4, 4, 1, 20),
(5, 1, 7, 300),
(6, 2, 7, 0),
(7, 3, 7, 0),
(8, 4, 7, 0),
(9, 1, 9, 30),
(10, 2, 9, 10),
(11, 3, 9, 0),
(12, 4, 9, 200),
(13, 1, 2, 40),
(14, 2, 2, 20),
(15, 3, 2, 10),
(16, 4, 2, 30),
(17, 1, 20, 10),
(18, 2, 20, 0),
(19, 3, 20, 0),
(20, 4, 20, 0),
(21, 1, 21, 100),
(22, 2, 21, 100),
(23, 3, 21, 0),
(24, 4, 21, 100),
(25, 1, 22, 250),
(26, 2, 22, 100),
(27, 3, 22, 0),
(28, 4, 22, 100),
(29, 1, 23, 50),
(30, 2, 23, 50),
(31, 3, 23, 0),
(32, 4, 23, 75),
(33, 1, 24, 20),
(34, 2, 24, 10),
(35, 3, 24, 1),
(36, 4, 24, 50);

-- --------------------------------------------------------

--
-- Table structure for table `WorkstationCostsMaster`
--

DROP TABLE IF EXISTS `WorkstationCostsMaster`;
CREATE TABLE `WorkstationCostsMaster` (
  `id` int(11) NOT NULL,
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `validation` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `WorkstationCostsMaster`
--

INSERT INTO `WorkstationCostsMaster` (`id`, `name`, `validation`) VALUES
(1, 'Electricity Cost', 'required'),
(2, 'Rent Cost', 'required'),
(3, 'Consumable Cost', ''),
(4, 'Wages', '');

-- --------------------------------------------------------

--
-- Table structure for table `Workstations`
--

DROP TABLE IF EXISTS `Workstations`;
CREATE TABLE `Workstations` (
  `id` int(11) NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `productionCapacity` double NOT NULL DEFAULT '1' COMMENT 'Production Capacity is the total number of jobs can be executed at the same time in the respective workstation',
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `branchId` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `Workstations`
--

INSERT INTO `Workstations` (`id`, `name`, `description`, `productionCapacity`, `status`, `branchId`) VALUES
(1, 'Stitching Station', 'Stitching unit isssssszdvsvfsv', 1, 1, 1),
(2, 'Washing Station G', '', 1, 1, 1),
(9, 'Bread Cutting Station', 'Bread Cutting Station Having 20 Machines', 200, 1, 1),
(20, 'Bread Cutter', '', 1, 1, 1),
(21, 'Cutting WS', 'Cutting Workstation', 100, 1, 1),
(22, 'Stitching WS', 'Stiching Work Station', 25, 1, 1),
(23, 'Buttoning Ws', 'Buttoning Work Station', 10, 1, 1),
(24, 'New But', '', 100, 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `WorkstationCosts`
--
ALTER TABLE `WorkstationCosts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `WorkstationCostsMaster`
--
ALTER TABLE `WorkstationCostsMaster`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Workstations`
--
ALTER TABLE `Workstations`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `WorkstationCosts`
--
ALTER TABLE `WorkstationCosts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;

--
-- AUTO_INCREMENT for table `WorkstationCostsMaster`
--
ALTER TABLE `WorkstationCostsMaster`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `Workstations`
--
ALTER TABLE `Workstations`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
