-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 29, 2020 at 01:09 PM
-- Server version: 10.4.14-MariaDB-1:10.4.14+maria~bionic-log
-- PHP Version: 7.2.24-0ubuntu0.18.04.6

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 `ProductionPlan`
--

CREATE TABLE `ProductionPlan` (
  `id` int(11) NOT NULL,
  `namingSeries` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `postingDate` datetime NOT NULL DEFAULT current_timestamp(),
  `branchId` int(11) NOT NULL,
  `getItemFromType` tinyint(4) NOT NULL COMMENT 'Sales Order or Material Request',
  `getItemFromId` int(11) NOT NULL,
  `includeNSI` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Include Non Stock Items',
  `status` tinyint(4) NOT NULL COMMENT 'Material Request Warehouse Id',
  `type` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1 = Production Plan 2 = Sales Order ',
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `deletedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `ProductionPlan`
--
ALTER TABLE `ProductionPlan`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;
