-- https://www.phpmyadmin.net/
--
-- Waktu pembuatan: 27 Okt 2023 pada 03.44
-- Versi server: 10.4.18-MariaDB
-- Versi PHP: 7.4.16

START TRANSACTION;



--
-- Database: `silsilah`
--

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

--
-- Struktur dari tabel `couples`
--

CREATE TABLE `couples` (
  `id` char(36) COLLATE utf8_unicode_ci NOT NULL,
  `husband_id` char(36) COLLATE utf8_unicode_ci NOT NULL,
  `wife_id` char(36) COLLATE utf8_unicode_ci NOT NULL,
  `marriage_date` date DEFAULT NULL,
  `divorce_date` date DEFAULT NULL,
  `manager_id` char(36) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `couples`
--

INSERT INTO `couples` (`id`, `husband_id`, `wife_id`, `marriage_date`, `divorce_date`, `manager_id`, `created_at`, `updated_at`) VALUES
('f0265cac-7c5c-4c0a-9c95-f41c44405546', '6351cab8-abf5-4fda-8b7f-4dd4d790a9c3', 'c920d31c-59fc-4931-b2bf-d69e7c1378c1', '2023-10-27', NULL, '6351cab8-abf5-4fda-8b7f-4dd4d790a9c3', '2023-10-27 01:37:34', '2023-10-27 01:37:34');

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

--
-- Struktur dari tabel `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data untuk tabel `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2017_06_27_151536_create_couples_table', 1),
(4, '2021_04_04_215601_create_user_metadata_table', 1);

--
-- Indexes for dumped tables
--

--
-- Indeks untuk tabel `couples`
--
ALTER TABLE `couples`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `couples_husband_id_wife_id_unique` (`husband_id`,`wife_id`);

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

--
-- AUTO_INCREMENT untuk tabel yang dibuang
--

--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;

