text: -- phpMyAdmin SQL Dump
  -- version 4.7.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Feb 26, 2022 at 08:03 AM
  -- Server version: 10.1.28-MariaDB
  -- PHP Version: 5.6.32
  
  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: `hotline_order`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `chatting`
  --
  
  CREATE TABLE `chatting` (
    `id` int(11) NOT NULL,
    `id_chat` varchar(255) NOT NULL,
    `id_user` int(11) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `chatting_detail`
  --
  
  CREATE TABLE `chatting_detail` (
    `id` int(11) NOT NULL,
    `id_chat` int(11) NOT NULL,
    `isi_pesan` text NOT NULL,
    `jenis_pesan` int(11) NOT NULL,
    `is_read` int(11) NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `read_at` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `master_parts`
  --
  
  CREATE TABLE `master_parts` (
    `id` int(11) NOT NULL,
    `kode_barang` varchar(255) NOT NULL,
    `nama_barang` varchar(255) NOT NULL,
    `foto` varchar(255) NOT NULL,
    `harga` double NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `master_parts`
  --
  
  INSERT INTO `master_parts` (`id`, `kode_barang`, `nama_barang`, `foto`, `harga`) VALUES
  (1, '082322mak8', 'Oli MPX 2', 'foto_1643940038.jpg', 50000);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `id` int(11) NOT NULL,
    `nama_lengkap` varchar(255) NOT NULL,
    `jenis_kelamin` varchar(255) NOT NULL,
    `alamat` text NOT NULL,
    `no_hp` varchar(255) NOT NULL,
    `username` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `role` varchar(255) NOT NULL,
    `status` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`id`, `nama_lengkap`, `jenis_kelamin`, `alamat`, `no_hp`, `username`, `password`, `role`, `status`) VALUES
  (1, 'admin', 'Laki-Laki', 'Jambi', '123456', 'admin', '123456', 'admin', 'active');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `chatting`
  --
  ALTER TABLE `chatting`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `chatting_detail`
  --
  ALTER TABLE `chatting_detail`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `master_parts`
  --
  ALTER TABLE `master_parts`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `chatting`
  --
  ALTER TABLE `chatting`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `chatting_detail`
  --
  ALTER TABLE `chatting_detail`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- AUTO_INCREMENT for table `master_parts`
  --
  ALTER TABLE `master_parts`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  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 */;
  