text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jul 18, 2020 at 05:47 AM
  -- Server version: 10.4.13-MariaDB
  -- PHP Version: 7.4.7
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `skripsi`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `id` int(2) NOT NULL,
    `name` varchar(150) NOT NULL,
    `username` varchar(25) NOT NULL,
    `password` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `admin`
  --
  
  INSERT INTO `admin` (`id`, `name`, `username`, `password`) VALUES
  (1, 'Trianta Almira Ramadhani', 'programmer', 'a425352a84b14c7acb601495bd156322'),
  (2, 'Maskur Budi Reksa Wibowo', 'admin', '21232f297a57a5a743894a0e4a801fc3');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `borrower`
  --
  
  CREATE TABLE `borrower` (
    `id` int(5) NOT NULL,
    `id_cust` int(5) NOT NULL,
    `id_inv` int(5) NOT NULL,
    `date_borrow` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `chat`
  --
  
  CREATE TABLE `chat` (
    `id` int(5) NOT NULL,
    `question` varchar(255) NOT NULL,
    `answer` varchar(255) NOT NULL,
    `date` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `customer`
  --
  
  CREATE TABLE `customer` (
    `id` int(5) NOT NULL,
    `nik` int(20) NOT NULL,
    `name` varchar(255) NOT NULL,
    `address` text NOT NULL,
    `phone` int(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `customer`
  --
  
  INSERT INTO `customer` (`id`, `nik`, `name`, `address`, `phone`) VALUES
  (1, 2147483647, 'BP. AMIRUDDIN', 'SAMARINDA', 2147483647);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `denda`
  --
  
  CREATE TABLE `denda` (
    `id` int(5) NOT NULL,
    `idtrans` varchar(255) NOT NULL,
    `denda` int(20) NOT NULL,
    `fdate` date NOT NULL,
    `ldate` date NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `invoice`
  --
  
  CREATE TABLE `invoice` (
    `id` int(5) NOT NULL,
    `id_admin` int(3) NOT NULL,
    `id_cust` int(5) NOT NULL,
    `rentaldate` datetime NOT NULL,
    `returndate` datetime NOT NULL,
    `paidstatus` varchar(50) NOT NULL,
    `loanstatus` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `order`
  --
  
  CREATE TABLE `order` (
    `id` int(5) NOT NULL,
    `id_inv` int(5) NOT NULL,
    `id_product` int(3) NOT NULL,
    `name` int(150) NOT NULL,
    `qty` int(5) NOT NULL,
    `price` int(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `pertanyaan`
  --
  
  CREATE TABLE `pertanyaan` (
    `id` int(3) NOT NULL,
    `pertanyaan` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `pertanyaan`
  --
  
  INSERT INTO `pertanyaan` (`id`, `pertanyaan`) VALUES
  (1, 'hai'),
  (2, 'hallo'),
  (4, 'assalamu\'alaikum'),
  (5, 'wassalamu\'alaikum');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `product`
  --
  
  CREATE TABLE `product` (
    `id` int(3) NOT NULL,
    `name` varchar(25) NOT NULL,
    `unit` varchar(11) NOT NULL,
    `owp` int(5) NOT NULL,
    `twp` int(5) NOT NULL,
    `omp` int(5) NOT NULL,
    `ep` int(5) NOT NULL,
    `stock` int(3) NOT NULL,
    `weight` int(8) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `product`
  --
  
  INSERT INTO `product` (`id`, `name`, `unit`, `owp`, `twp`, `omp`, `ep`, `stock`, `weight`) VALUES
  (1, 'Jack Base 60 cm', 'biji', 3000, 5000, 7000, 1750, 1000, 4600),
  (2, 'U Head Jack 60 cm', 'biji', 3000, 5000, 7000, 1750, 1000, 4800),
  (3, 'Cat Walk', 'biji', 30000, 30000, 40000, 10000, 1000, 13300),
  (4, 'Roda', 'set (4biji)', 40000, 50000, 80000, 20000, 1000, 0),
  (5, 'Tangga', 'biji', 30000, 40000, 50000, 12500, 1000, 0),
  (6, 'Pipa Support', 'biji', 28000, 38000, 40000, 12500, 1000, 0),
  (7, 'Join Pin', 'biji', 500, 750, 1500, 375, 1000, 280),
  (8, 'Cross Brace 200', 'biji', 3000, 5000, 7000, 1750, 1000, 2800),
  (9, 'Cross Brace 220', 'biji', 3000, 5000, 7000, 1750, 1000, 3080),
  (10, 'Leader 0,9 Meter', 'biji', 7000, 11500, 11000, 2750, 1000, 6000),
  (11, 'Main Frame 1,7 Meter', 'biji', 11000, 13500, 15000, 3750, 1000, 11200),
  (13, 'Main Frame 1,9 Meter', 'biji', 13500, 16000, 17500, 4375, 1000, 12000);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `return`
  --
  
  CREATE TABLE `return` (
    `id` int(5) NOT NULL,
    `id_cust` int(5) NOT NULL,
    `id_inv` int(5) NOT NULL,
    `date` datetime NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transaksi`
  --
  
  CREATE TABLE `transaksi` (
    `id` int(10) NOT NULL,
    `id_cust` varchar(100) NOT NULL,
    `fdate` date NOT NULL,
    `ldate` date NOT NULL,
    `borrow` varchar(10) NOT NULL,
    `cost` int(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `transport`
  --
  
  CREATE TABLE `transport` (
    `id` int(5) NOT NULL,
    `name` varchar(255) NOT NULL,
    `address` varchar(255) NOT NULL,
    `cost` int(20) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(5) NOT NULL,
    `nama` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `subject` text NOT NULL,
    `comment` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id`, `nama`, `email`, `subject`, `comment`) VALUES
  (1, 'Almira Ramadhani', 'evan@gmail.com', 'ajkrn', 'kn'),
  (2, 'Trianta Almira', 'evan@gmail.com', 'Pelayanan', 'waktu untuk pelayanan kurang karena saya sering mendapat perintah saat malam hari dari atasan'),
  (3, 'Trianta Almira Ramadhani', 'almira@gmail.com', 'Pelayanan', 'Kurang memuaskan');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `borrower`
  --
  ALTER TABLE `borrower`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `chat`
  --
  ALTER TABLE `chat`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `customer`
  --
  ALTER TABLE `customer`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `denda`
  --
  ALTER TABLE `denda`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `invoice`
  --
  ALTER TABLE `invoice`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `order`
  --
  ALTER TABLE `order`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `pertanyaan`
  --
  ALTER TABLE `pertanyaan`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `product`
  --
  ALTER TABLE `product`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `return`
  --
  ALTER TABLE `return`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transaksi`
  --
  ALTER TABLE `transaksi`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `transport`
  --
  ALTER TABLE `transport`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `admin`
  --
  ALTER TABLE `admin`
    MODIFY `id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `borrower`
  --
  ALTER TABLE `borrower`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `chat`
  --
  ALTER TABLE `chat`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `customer`
  --
  ALTER TABLE `customer`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `denda`
  --
  ALTER TABLE `denda`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `invoice`
  --
  ALTER TABLE `invoice`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `order`
  --
  ALTER TABLE `order`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `pertanyaan`
  --
  ALTER TABLE `pertanyaan`
    MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `product`
  --
  ALTER TABLE `product`
    MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
  
  --
  -- AUTO_INCREMENT for table `return`
  --
  ALTER TABLE `return`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `transport`
  --
  ALTER TABLE `transport`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  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 */;
  