-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 15, 2025 at 11:36 AM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30

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: `iframe_adstera`
--

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

--
-- Table structure for table `ads`
--

CREATE TABLE `ads` (
  `id` int(11) NOT NULL,
  `nama_iklan` varchar(100) DEFAULT NULL,
  `ad_link` text NOT NULL,
  `aktif` tinyint(1) DEFAULT 0,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `ads`
--

INSERT INTO `ads` (`id`, `nama_iklan`, `ad_link`, `aktif`, `created_at`) VALUES
(3, 'iklan 2', 'https://www.effectivegatecpm.com/bqvecrtbk3?key=ad450419d538028933c241f576d7ea98', 1, '2025-10-15 08:48:23'),
(4, 'ff', 'https://www.effectivegatecpm.com/ceez44ucdb?key=7804bbc74e0f6c3330ddc16e2f7bd2eb', 1, '2025-10-15 08:56:48');

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

--
-- Table structure for table `berita`
--

CREATE TABLE `berita` (
  `id` int(11) NOT NULL,
  `link` text NOT NULL,
  `judul` varchar(255) DEFAULT NULL,
  `thumbnail` text DEFAULT NULL,
  `slug` varchar(100) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `berita`
--

INSERT INTO `berita` (`id`, `link`, `judul`, `thumbnail`, `slug`, `created_at`) VALUES
(1, 'https://www.detik.com/sulsel/hukum-dan-kriminal/d-8161179/tipu-muslihat-pria-sidrap-perkosa-sekap-gadis-14-tahun', 'Tipu Muslihat Pria Sidrap Perkosa-Sekap Gadis 14 Tahun', 'https://akcdn.detik.net.id/api/wm/2019/07/23/39b6522e-59e2-441c-a0f2-81e2ba143bc8_169.jpeg?wid=54&w=1200&v=1&t=jpeg', '6qgzmc9f', '2025-10-15 08:04:33'),
(2, 'https://www.detik.com/sulsel/hukum-dan-kriminal/d-8160849/oknum-kesek-paud-cabuli-murid-di-polman-jadi-tersangka-korban-kini-5-orang', 'Oknum Kesek PAUD Cabuli Murid di Polman Jadi Tersangka, Korban Kini 5 Orang', 'https://akcdn.detik.net.id/api/wm/2015/06/24/aa654593-18dd-45c4-8548-2ae955b419a7_169.jpg?wid=54&w=1200&v=1&t=jpeg', '6f8w3ad9', '2025-10-15 08:10:33'),
(3, 'https://www.detik.com/sulsel/makassar/d-8159375/makna-di-balik-desain-arsitektur-stadion-sudiang-makassar', 'Makna di Balik Desain Arsitektur Stadion Sudiang Makassar', 'https://akcdn.detik.net.id/api/wm/2025/09/30/penampakan-desain-stadion-sudiang-makassar-1759223370025_169.jpeg?wid=54&w=1200&v=1&t=jpeg', 'e2c33fea', '2025-10-15 08:24:06'),
(4, 'https://www.detik.com/sulsel/watampone/d-7760982/warga-keluhkan-suplai-pdam-bone-4-hari-tak-mengalir-terpaksa-pakai-air-galon', 'Warga Keluhkan Suplai PDAM Bone 4 Hari Tak Mengalir, Terpaksa Pakai Air Galon', 'https://akcdn.detik.net.id/api/wm/2023/08/06/ilustrasi-keran-air_169.jpeg?wid=54&w=1200&v=1&t=jpeg', '603fd5e0', '2025-10-15 08:40:49'),
(5, 'https://www.detik.com/sulsel/hukum-dan-kriminal/d-8162054/viral-siswi-smk-di-polman-dibully-dianiaya-teman-gegara-tak-buang-sampah', 'Viral Siswi SMK di Polman Dibully-Dianiaya Teman gegara Tak Buang Sampah', 'https://akcdn.detik.net.id/api/wm/2025/10/15/polewali-mandar-1760518353962_169.jpeg?wid=54&w=1200&v=1&t=jpeg', '30b33b9dd3cf2adb618cc52d6dadc353', '2025-10-15 09:27:40');

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

--
-- Table structure for table `berita_links`
--

CREATE TABLE `berita_links` (
  `id` int(11) NOT NULL,
  `judul` varchar(255) NOT NULL,
  `url_berita` text NOT NULL,
  `kode_unik` varchar(50) NOT NULL,
  `tanggal` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `berita_links`
--

INSERT INTO `berita_links` (`id`, `judul`, `url_berita`, `kode_unik`, `tanggal`) VALUES
(1, 'Berita1', 'https://sport.detik.com/sepakbola/bola-dunia/d-8161708/messi-raja-asis-sepakbola-internasional', '7f3391', '2025-10-15 15:48:36'),
(2, '1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare  Baca artikel detiksulsel, \"1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare\" selengkapnya https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ile', 'https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ilegal-senilai-rp-2-7-miliar-disita-di-parepare', 'd87512', '2025-10-15 15:52:03'),
(3, '1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare  Baca artikel detiksulsel, \"1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare\" selengkapnya https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ile', 'https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ilegal-senilai-rp-2-7-miliar-disita-di-parepare', 'ed59a1', '2025-10-15 15:52:08'),
(4, '1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare  Baca artikel detiksulsel, \"1,7 Juta Batang Rokok Ilegal Senilai Rp 2,7 Miliar Disita di Parepare\" selengkapnya https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ile', 'https://www.detik.com/sulsel/parepare/d-8160201/1-7-juta-batang-rokok-ilegal-senilai-rp-2-7-miliar-disita-di-parepare', 'fa6e7a', '2025-10-15 15:54:03');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `ads`
--
ALTER TABLE `ads`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `berita`
--
ALTER TABLE `berita`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `slug` (`slug`);

--
-- Indexes for table `berita_links`
--
ALTER TABLE `berita_links`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `kode_unik` (`kode_unik`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `ads`
--
ALTER TABLE `ads`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `berita`
--
ALTER TABLE `berita`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `berita_links`
--
ALTER TABLE `berita_links`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;
