text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: May 17, 2021 at 04:10 AM
  -- Server version: 10.4.14-MariaDB
  -- PHP Version: 7.3.22
  
  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: `db_tiket`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `t_pesanan`
  --
  
  CREATE TABLE `t_pesanan` (
    `tpesanan_id` int(11) NOT NULL,
    `tpesanan_no` int(25) NOT NULL,
    `tpesanan_date_order` date NOT NULL,
    `tpesanan_date_visited` date NOT NULL,
    `tpesanan_no_ticket` int(25) NOT NULL,
    `tpesanan_jumlah` int(11) NOT NULL,
    `tpesanan_total` decimal(22,0) NOT NULL,
    `sysuser_id` int(11) NOT NULL,
    `rticket_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `t_pesanan`
  --
  ALTER TABLE `t_pesanan`
    ADD PRIMARY KEY (`tpesanan_id`),
    ADD KEY `sysuser_id` (`sysuser_id`),
    ADD KEY `rticket_id` (`rticket_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `t_pesanan`
  --
  ALTER TABLE `t_pesanan`
    MODIFY `tpesanan_id` int(11) NOT NULL AUTO_INCREMENT;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `t_pesanan`
  --
  ALTER TABLE `t_pesanan`
    ADD CONSTRAINT `t_pesanan_ibfk_1` FOREIGN KEY (`rticket_id`) REFERENCES `r_ticket` (`rticket_id`),
    ADD CONSTRAINT `t_pesanan_ibfk_2` FOREIGN KEY (`sysuser_id`) REFERENCES `sys_user` (`userId`);
  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 */;
  