text: -- phpMyAdmin SQL Dump
  -- version 5.0.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Waktu pembuatan: 19 Jan 2022 pada 13.23
  -- Versi server: 10.4.11-MariaDB
  -- Versi PHP: 7.3.15
  
  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: `dapurrumahsejahtera`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `detail_transaksi`
  --
  
  CREATE TABLE `detail_transaksi` (
    `id` int(11) NOT NULL,
    `id_transaksi` varchar(255) CHARACTER SET latin1 NOT NULL,
    `harga` float NOT NULL,
    `jumlah` float DEFAULT NULL,
    `sub_total` float(255,0) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  
  --
  -- Dumping data untuk tabel `detail_transaksi`
  --
  
  INSERT INTO `detail_transaksi` (`id`, `id_transaksi`, `harga`, `jumlah`, `sub_total`) VALUES
  (605, '7', 100000, 1, 100000);
  
  --
  -- Trigger `detail_transaksi`
  --
  DELIMITER $$
  CREATE TRIGGER `insert_detail_transaksi` BEFORE INSERT ON `detail_transaksi` FOR EACH ROW SET new.id = uuid()
  $$
  DELIMITER ;
  
  -- --------------------------------------------------------
  
  --
  -- Struktur dari tabel `transaksi`
  --
  
  CREATE TABLE `transaksi` (
    `tgl_order` timestamp NOT NULL DEFAULT current_timestamp(),
    `id` int(255) NOT NULL,
    `status_pelunasan` int(1) DEFAULT NULL,
    `tgl_pembayaran` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
  
  --
  -- Dumping data untuk tabel `transaksi`
  --
  
  INSERT INTO `transaksi` (`tgl_order`, `id`, `status_pelunasan`, `tgl_pembayaran`) VALUES
  ('2022-01-18 16:12:00', 7, 1, '2022-01-18 19:21:00');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indeks untuk tabel `detail_transaksi`
  --
  ALTER TABLE `detail_transaksi`
    ADD PRIMARY KEY (`id`) USING BTREE;
  
  --
  -- Indeks untuk tabel `transaksi`
  --
  ALTER TABLE `transaksi`
    ADD PRIMARY KEY (`id`) USING BTREE;
  
  --
  -- AUTO_INCREMENT untuk tabel yang dibuang
  --
  
  --
  -- AUTO_INCREMENT untuk tabel `detail_transaksi`
  --
  ALTER TABLE `detail_transaksi`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=606;
  
  --
  -- AUTO_INCREMENT untuk tabel `transaksi`
  --
  ALTER TABLE `transaksi`
    MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  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 */;
  