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

START TRANSACTION;



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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int(11) NOT NULL,
  `name` varchar(200) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT NULL,
  `subAdminView` varchar(11) NOT NULL DEFAULT 'off',
  `subAdminAdd` varchar(11) NOT NULL DEFAULT 'off',
  `subAdminEdit` varchar(11) NOT NULL DEFAULT 'off',
  `newsView` varchar(11) NOT NULL DEFAULT 'off',
  `newsAdd` varchar(11) NOT NULL DEFAULT 'off',
  `newsEdit` varchar(11) NOT NULL DEFAULT 'off',
  `blogView` varchar(11) NOT NULL DEFAULT 'off',
  `blogAdd` varchar(11) NOT NULL DEFAULT 'off',
  `blogEdit` varchar(11) NOT NULL DEFAULT 'off',
  `userView` varchar(200) NOT NULL DEFAULT 'off'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`, `subAdminView`, `subAdminAdd`, `subAdminEdit`, `newsView`, `newsAdd`, `newsEdit`, `blogView`, `blogAdd`, `blogEdit`, `userView`) VALUES
(1, 'Analytics', '2023-12-06 05:54:34', '2023-12-06 06:32:17', 'off', 'on', 'off', 'on', 'on', 'off', 'on', 'off', 'on', 'off'),
(2, 'Super', '2024-03-09 05:24:23', NULL, 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on', 'on');

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

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

CREATE TABLE `settings` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `favicon` varchar(255) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `settings` (`id`, `title`, `favicon`, `logo`, `created_at`, `updated_at`) VALUES
(1, 'TogBuzzz', 'images/1680596594.png', 'images/1680596594.png', NULL, '2024-03-09 00:22:56');

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

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

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

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;

