-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `jacqxbxl_server`
--

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `key` varchar(255) NOT NULL,
  `value` text NOT NULL,
  `description` varchar(500) DEFAULT NULL,
  `category` varchar(100) DEFAULT NULL,
  `updatedAt` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `createdAt` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `key`, `value`, `description`, `category`, `updatedAt`, `createdAt`) VALUES
(1, 'price_membership', '25000', 'Menentukan Harga untuk Membership', 'Membersips Settings', '2025-12-02 19:10:29', '2025-12-02 19:10:01'),
(2, 'status_membership', 'true', 'Mengatur apakah memberships open atau tidak', 'Membersips Settings', '2025-12-02 19:21:42', '2025-12-02 19:11:04'),
(3, 'seller_phone', '6289501240757', NULL, 'Main Settings', '2025-12-02 19:19:02', '2025-12-02 19:19:02');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `key` (`key`),
  ADD UNIQUE KEY `uk_key` (`key`),
  ADD KEY `idx_category` (`category`),
  ADD KEY `idx_key` (`key`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;

