-- https://www.phpmyadmin.net/
--
-- Anamakine: localhost:3306
-- Üretim Zamanı: 03 Ağu 2026, 21:44:22
-- Sunucu sürümü: 10.6.27-MariaDB
-- PHP Sürümü: 8.4.23

START TRANSACTION;



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

--
-- Tablo için tablo yapısı `settings`
--

CREATE TABLE `settings` (
  `id` int(11) NOT NULL,
  `name` varchar(120) NOT NULL,
  `value` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Tablo döküm verisi `settings`
--

INSERT INTO `settings` (`id`, `name`, `value`) VALUES
(1, 'site_title', 'Belek Escort Bayanlar - Escort Kadriye Partner - Serik Escort  '),
(2, 'home_h1', 'Belek Escort Bayanlar - Escort Kadriye Partner - Serik Escort  '),
(3, 'meta_description', 'Belek escort sitemizde kaliteli kadriye escort bayan desteği sağlayan adresimiz sizlere en kaliteli serik escort, escort belek desteği sağlıyor.\r\n '),
(4, 'meta_keywords', ''),
(5, 'meta_author', ''),
(6, 'meta_robots', 'index,follow'),
(7, 'canonical_url', 'https://naftalanbook.com/'),
(8, 'og_image', ''),
(9, 'warn_text', 'UYARI: Banka hesabına para yatırmanızı isteyen dolandırıcılara kesinlikle itibar etmeyin.'),
(10, 'cta_text', 'REKLAM VERMEK İÇİN TIKLAYIN'),
(11, 'cta_url', 'https://wa.me/+40734266458'),
(12, 'footer_text', '© 2025 Belek Escort Bayanlar - Escort Kadriye Partner - Serik Escort  '),
(13, 'onay_badge_text', 'ONAYLI FOTO'),
(14, 'columns_desktop', '2'),
(15, 'columns_mobile', '1'),
(16, 'card_height', '160'),
(17, 'slider_speed', '6'),
(18, 'site_bg', '#0b0b0b'),
(19, 'header_start', '#661525'),
(20, 'header_end', '#21080d'),
(21, 'header_text', '#ffffff'),
(22, 'top_bg', '#000000'),
(23, 'warn_color', '#ff3b3b'),
(24, 'cta_start', '#ffd500'),
(25, 'cta_end', '#f2b800'),
(26, 'cta_text_color', '#000000'),
(27, 'card_start', '#5b010a'),
(28, 'card_end', '#785959'),
(29, 'badge_text', '#ffffff'),
(30, 'badge_bg', ''),
(31, 'badge_name_bg', ''),
(32, 'article_start', '#21080d'),
(33, 'article_end', '#120000'),
(34, 'article_title', '#ffd500'),
(35, 'footer_start', '#120000'),
(36, 'footer_end', '#000000'),
(37, 'footer_text_color', '#cccccc'),
(38, 'article_title_text', 'Belek Escort Hizmetleri'),
(39, 'main_article_html', 'Selamlar Türkiyenin En Güvenilir Belek Escort seks zirvesinde yaşamak isteyen elit beyler için kurulmuştur. Belek escort bayan Güncel ilan ver sitesi ile istediğin zaman güvenilir sitemizden ilan verebilirsiniz. Belek eskort Belek eskort seks zevk kraliçesi bayanlarını kapsıyor. masaj salonu Zevk kusursuzdur bizim için ve bayanlarımız doyumsuzdur. ( Süper arama motoru ile google de yükselme şansını elde ediyoruz. Sitemap sitenin arama motorunda bizim haritamızı gösteren motordur. Robots.txt google bot robot izelemesi gereken linkleri verir.) Escort Kusadasi merkez de bulunan tüm güzellikleri barındırıyor. Belek escort, Belek eskort bayan, Belek masaj salonu olarak, Rus, Makedon, Arap, Zenci(Siyahi), Ukraynalı, Asyalı, Japon, Alman, İtalyan, gibi Her dilden insanları barındıran, şişman, zayıf, uzun boylu, kısa boylu, seksi, dolgun vücut hatlı, Kendi evinde görüşen,otele gelen, eve gelen, seks seven, sexy, buğday tenli, balıketli, esmer tenli, sütun bacaklı, escort kusadasi Eskort Belek Hizmette sınır tanımayan bayanlar sizler için geldi.'),
(1121, 'cache_enabled', ''),
(1122, 'protection_enabled', ''),
(1123, 'protect_window', '5'),
(1124, 'protect_max_hits', '5'),
(1125, 'ban_minutes', '30');

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

--
-- Tablo için tablo yapısı `vitrins`
--

CREATE TABLE `vitrins` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `isim` varchar(120) NOT NULL,
  `gorusme_yeri` varchar(160) NOT NULL DEFAULT '',
  `istekler` varchar(255) NOT NULL DEFAULT '',
  `il` varchar(160) NOT NULL DEFAULT '',
  `onayli_foto` tinyint(1) NOT NULL DEFAULT 0,
  `whatsapp_url` varchar(255) NOT NULL DEFAULT '',
  `telefon` varchar(60) NOT NULL DEFAULT '',
  `telegram_url` varchar(255) NOT NULL DEFAULT '',
  `vitrin_url` varchar(255) NOT NULL DEFAULT '',
  `sirano` int(11) NOT NULL DEFAULT 999999,
  `status` enum('pending','active','passive','rejected') NOT NULL DEFAULT 'active',
  `expires_at` datetime DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `description` text DEFAULT NULL,
  `whatsapp_message` varchar(255) DEFAULT NULL,
  `telegram` varchar(255) DEFAULT NULL,
  `baslik` varchar(255) DEFAULT NULL,
  `aciklama` text DEFAULT NULL,
  `sehir` varchar(100) DEFAULT NULL,
  `semt` varchar(100) DEFAULT NULL,
  `mahalle` varchar(100) DEFAULT NULL,
  `genel_bilgiler` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Tablo döküm verisi `vitrins`
--

INSERT INTO `vitrins` (`id`, `user_id`, `isim`, `gorusme_yeri`, `istekler`, `il`, `onayli_foto`, `whatsapp_url`, `telefon`, `telegram_url`, `vitrin_url`, `sirano`, `status`, `expires_at`, `created_at`, `description`, `whatsapp_message`, `telegram`, `baslik`, `aciklama`, `sehir`, `semt`, `mahalle`, `genel_bilgiler`) VALUES
(39, NULL, 'SU', 'OTEL EV', '05558929545', 'BELEK', 0, 'https://wa.me/+40734266458?text=naftalanbook%C4%B1%20sitesinden%20ula%C5%9F%C4%B1yorum%20size.', '+905558929545', '', '', 1, 'active', NULL, '2026-08-03 17:57:49', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL),
(40, NULL, 'KARİNA', 'OTEL EV', '05541937804', 'BELEK', 1, 'https://wa.me/905541937804?text=', '+905541937804', '', '', 1000002, 'active', NULL, '2026-08-03 18:03:27', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL),
(41, NULL, 'ALONA', 'OTEL EV', '+4917615799253', 'BELEK', 1, 'https://wa.me/4917615799253?text=', '', '', '', 1000001, 'active', NULL, '2026-08-03 18:05:20', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL),
(42, NULL, 'RAZALYA', 'OTEL EV', '+998502523145', 'BELEK', 1, 'https://wa.me/998502523145?text=', '', '', '', 1000000, 'active', NULL, '2026-08-03 18:06:55', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL),
(43, NULL, 'MELİSA', 'KENDİ EVİ VAR', '05014937479', 'BELEK', 1, 'https://wa.me/905014937479?text=', '+905014937479', '', '', 999999, 'active', NULL, '2026-08-03 18:08:21', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Tablo için tablo yapısı `vitrin_images`
--

CREATE TABLE `vitrin_images` (
  `id` int(11) NOT NULL,
  `vitrin_id` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `sort_order` int(11) NOT NULL DEFAULT 1,
  `created_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Tablo döküm verisi `vitrin_images`
--

INSERT INTO `vitrin_images` (`id`, `vitrin_id`, `url`, `sort_order`, `created_at`) VALUES
(128, 39, 'uploads/vitrin/39/2da67bbb977feaf0600446a7a4fb813f.jpg', 1, '2026-08-03 17:57:49'),
(129, 39, 'uploads/vitrin/39/b2a88822a63827e4a71398a7a36cda79.jpg', 2, '2026-08-03 17:57:49'),
(130, 39, 'uploads/vitrin/39/77c6c2d5e7f41349a5e3c15dd3cf6023.jpg', 3, '2026-08-03 17:57:49'),
(131, 40, 'uploads/vitrin/40/d7f1fb5323a70c6965784ce7599c1d62.jpg', 1, '2026-08-03 18:03:27'),
(132, 40, 'uploads/vitrin/40/7f2452d717b287aada08ba6a2ed6f816.jpg', 2, '2026-08-03 18:03:27'),
(133, 40, 'uploads/vitrin/40/3127c26e160757092613eae710f2da1a.jpg', 3, '2026-08-03 18:03:27'),
(134, 40, 'uploads/vitrin/40/10d04ffdd12680060edc4bfd83e9074d.jpg', 4, '2026-08-03 18:03:27'),
(135, 41, 'uploads/vitrin/41/cee8ebbcb84382cd7d2017a495b355c8.jpg', 1, '2026-08-03 18:05:20'),
(136, 41, 'uploads/vitrin/41/c08702800e00eacfdff5ea46c6fdfcd4.jpg', 2, '2026-08-03 18:05:20'),
(137, 41, 'uploads/vitrin/41/c347c33cb4f99b81993ac4326a019146.jpg', 3, '2026-08-03 18:05:20'),
(138, 41, 'uploads/vitrin/41/5ab4bec1e70289ceaa9c424bba7da9fb.jpg', 4, '2026-08-03 18:05:20'),
(139, 42, 'uploads/vitrin/42/4b8b0546c78dd9622b0b3b4ed90d50f8.jpg', 1, '2026-08-03 18:06:55'),
(140, 42, 'uploads/vitrin/42/69dfdef02d73ebcf4e9112abb72d3df5.jpg', 2, '2026-08-03 18:06:55'),
(141, 42, 'uploads/vitrin/42/12a7e76efc5236017fd18179092e7bff.jpg', 3, '2026-08-03 18:06:55'),
(142, 42, 'uploads/vitrin/42/63645c657abea567625686854b04b364.jpg', 4, '2026-08-03 18:06:55'),
(143, 43, 'uploads/vitrin/43/c523ba72de9791cf094933e65c1bc2d8.jpg', 1, '2026-08-03 18:08:21'),
(144, 43, 'uploads/vitrin/43/f83b5ce52e86b0ecf0bc3b91c4fca051.jpg', 2, '2026-08-03 18:08:21'),
(145, 43, 'uploads/vitrin/43/f388d2009ed3206473a074cc5dd8e002.jpg', 3, '2026-08-03 18:08:21'),
(146, 43, 'uploads/vitrin/43/ec2730d5b237084173859a75861cfd28.png', 4, '2026-08-03 18:08:21');

--
-- Tablo için indeksler `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Tablo için indeksler `vitrins`
--
ALTER TABLE `vitrins`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_vitrins_user` (`user_id`),
  ADD KEY `idx_vitrins_status_expires` (`status`,`expires_at`);

--
-- Tablo için indeksler `vitrin_images`
--
ALTER TABLE `vitrin_images`
  ADD PRIMARY KEY (`id`),
  ADD KEY `vitrin_id` (`vitrin_id`);

--
-- Tablo için AUTO_INCREMENT değeri `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1340;

--
-- Tablo için AUTO_INCREMENT değeri `vitrins`
--
ALTER TABLE `vitrins`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;

--
-- Tablo için AUTO_INCREMENT değeri `vitrin_images`
--
ALTER TABLE `vitrin_images`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=147;

--
-- Dökümü yapılmış tablolar için kısıtlamalar
--

--
-- Tablo kısıtlamaları `vitrin_images`
--
ALTER TABLE `vitrin_images`
  ADD CONSTRAINT `fk_vitrin_images_vitrin` FOREIGN KEY (`vitrin_id`) REFERENCES `vitrins` (`id`) ON DELETE CASCADE;

-- Blog modulu
CREATE TABLE IF NOT EXISTS `blog_categories` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(150) NOT NULL,
  `slug` varchar(180) NOT NULL,
  `description` text DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`), UNIQUE KEY `uk_blog_categories_slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `blog_posts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `category_id` int unsigned DEFAULT NULL,
  `title` varchar(255) NOT NULL,
  `slug` varchar(255) NOT NULL,
  `excerpt` text DEFAULT NULL,
  `content` longtext NOT NULL,
  `status` enum('draft','published') NOT NULL DEFAULT 'draft',
  `published_at` datetime DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`), UNIQUE KEY `uk_blog_posts_slug` (`slug`),
  KEY `idx_blog_posts_category` (`category_id`), KEY `idx_blog_posts_status` (`status`,`published_at`),
  CONSTRAINT `fk_blog_posts_category` FOREIGN KEY (`category_id`) REFERENCES `blog_categories` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `blog_images` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `post_id` int unsigned NOT NULL,
  `url` varchar(255) NOT NULL,
  `alt_text` varchar(255) NOT NULL DEFAULT '',
  `sort_order` int NOT NULL DEFAULT 0,
  `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`), KEY `idx_blog_images_post` (`post_id`),
  CONSTRAINT `fk_blog_images_post` FOREIGN KEY (`post_id`) REFERENCES `blog_posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

COMMIT;

