-- https://www.phpmyadmin.net/
--
-- Waktu pembuatan: 27 Mar 2023 pada 01.20
-- Versi server: 10.5.18-MariaDB-cll-lve
-- Versi PHP: 7.4.33

START TRANSACTION;



--
-- Database: `davinid_apla`
--

-- --------------------------------------------------------

--
-- Struktur dari tabel `borrow_permit`
--

CREATE TABLE `borrow_permit` (
  `permit_id` int(20) NOT NULL,
  `id` varchar(256) NOT NULL,
  `item_name` varchar(256) NOT NULL,
  `place` varchar(256) NOT NULL,
  `actlocation` varchar(256) NOT NULL,
  `time_out` varchar(256) NOT NULL,
  `borrower` varchar(256) NOT NULL,
  `company` varchar(256) NOT NULL,
  `contact` varchar(256) NOT NULL,
  `statuses` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data untuk tabel `borrow_permit`
--

INSERT INTO `borrow_permit` (`permit_id`, `id`, `item_name`, `place`, `actlocation`, `time_out`, `borrower`, `company`, `contact`, `statuses`) VALUES
(111938, '0', '', '', '', '25 / 03 / 2023  11.19', '', '0', '', 'Ready'),
(112011, '0', '', '', '', '25 / 03 / 2023  11.20', '', '0', '', 'Ready'),
(205432, '1903202349', 'Tangga Coklat', 'LOCC', 'JK5 ROOF', '23 / 03 / 2023  20.54', 'Arradji', 'internal', '081234567890', 'Borrowed'),
(205955, '1903202350', 'Fluke Multimeter', 'LOCC', 'JK5 ROOF', '23 / 03 / 2023  20.59', 'Nugroho', 'customer', '081256743245', 'Borrowed');

-- --------------------------------------------------------

--
-- Struktur dari tabel `items`
--

CREATE TABLE `items` (
  `id` int(11) NOT NULL,
  `item_name` varchar(256) NOT NULL,
  `place` varchar(256) NOT NULL,
  `item_condition` varchar(256) NOT NULL,
  `calibration_date` varchar(256) NOT NULL,
  `image` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data untuk tabel `items`
--

INSERT INTO `items` (`id`, `item_name`, `place`, `item_condition`, `calibration_date`, `image`) VALUES
(1903202327, 'Tools Set', 'LOCC', 'good', '2023-02-20', '821-HOZAN-Telco-Tools-Set-S-10--SKU05516811-201671416429 (1).jpg'),
(1903202348, 'Fluke TH Meter', 'LOCC', 'good', '2023-02-03', '435-fluke temperature.jpg'),
(1903202349, 'Tangga Coklat', 'LOCC', 'good', '2023-05-02', '718-tangga.jpeg'),
(1903202350, 'Fluke Multimeter', 'LOCC', 'good', '2023-03-20', '383-fluke multimeter.jpg'),
(2147483647, 'Hioki Battery Tester', 'LOCC', 'good', '2022-02-02', '387-product_image5656.png');

-- --------------------------------------------------------

--
-- Struktur dari tabel `produk`
--

CREATE TABLE `produk` (
  `id` int(11) NOT NULL,
  `nama_produk` varchar(255) DEFAULT NULL,
  `deskripsi` text DEFAULT NULL,
  `harga_beli` int(11) DEFAULT NULL,
  `harga_jual` int(11) DEFAULT NULL,
  `gambar_produk` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data untuk tabel `produk`
--

INSERT INTO `produk` (`id`, `nama_produk`, `deskripsi`, `harga_beli`, `harga_jual`, `gambar_produk`) VALUES
(1, '', '', 0, 0, NULL),
(2, '', '', 0, 0, NULL);

-- --------------------------------------------------------

--
-- Struktur dari tabel `return_permit`
--

CREATE TABLE `return_permit` (
  `permit_id` int(20) NOT NULL,
  `username` varchar(256) NOT NULL,
  `company` varchar(256) NOT NULL,
  `tools` varchar(256) NOT NULL,
  `place` varchar(256) NOT NULL,
  `time_in` varchar(256) NOT NULL,
  `pic_name` varchar(256) NOT NULL,
  `pict` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data untuk tabel `return_permit`
--

INSERT INTO `return_permit` (`permit_id`, `username`, `company`, `tools`, `place`, `time_in`, `pic_name`, `pict`) VALUES
(0, 'wewe', 'we', 'we', 'we', 'we', 'we', '850-tangga.jpeg'),
(45, '', 'v', 'v', 'v', '', 'v', '924-tangga.jpeg'),
(205955, '', 'customer', '', 'LOCC', '27 / 03 / 2023  00.42', 'cesxazsa', 'null');

-- --------------------------------------------------------

--
-- Struktur dari tabel `validation_permit`
--

CREATE TABLE `validation_permit` (
  `id` int(20) NOT NULL,
  `status` varchar(256) NOT NULL,
  `item_name` varchar(256) NOT NULL,
  `place` varchar(256) NOT NULL,
  `location` varchar(256) NOT NULL,
  `time_out` varchar(256) NOT NULL,
  `borrower` varchar(256) NOT NULL,
  `company` varchar(256) NOT NULL,
  `contact` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `borrow_permit`
--
ALTER TABLE `borrow_permit`
  ADD PRIMARY KEY (`permit_id`);

--
-- Indeks untuk tabel `items`
--
ALTER TABLE `items`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `produk`
--
ALTER TABLE `produk`
  ADD PRIMARY KEY (`id`);

--
-- Indeks untuk tabel `return_permit`
--
ALTER TABLE `return_permit`
  ADD PRIMARY KEY (`permit_id`);

--
-- Indeks untuk tabel `validation_permit`
--
ALTER TABLE `validation_permit`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `produk`
--
ALTER TABLE `produk`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;

