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

START TRANSACTION;



--
-- Database: `laravel`
--

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

--
-- Table structure for table `activity_logs`
--

CREATE TABLE `activity_logs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `action` varchar(255) NOT NULL,
  `resource_id` bigint(20) DEFAULT NULL,
  `resource_type` varchar(255) DEFAULT NULL,
  `details` text DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `activity_logs`
--

INSERT INTO `activity_logs` (`id`, `user_id`, `action`, `resource_id`, `resource_type`, `details`, `ip_address`, `created_at`, `updated_at`) VALUES
(1, 2, 'login', NULL, NULL, NULL, '127.0.0.1', '2025-05-26 15:49:32', '2025-05-26 15:49:32'),
(2, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"POST\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"route\\\":null}\"', '127.0.0.1', '2025-05-26 15:49:32', '2025-05-26 15:49:32'),
(3, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 15:49:35', '2025-05-26 15:49:35'),
(4, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\\\\/stats\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"dashboard.stats\\\"}\"', '127.0.0.1', '2025-05-26 15:49:44', '2025-05-26 15:49:44'),
(5, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:49:52', '2025-05-26 15:49:52'),
(6, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:50:00', '2025-05-26 15:50:00'),
(7, 2, 'download_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/downloads\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"downloads.create\\\"}\"', '127.0.0.1', '2025-05-26 15:50:04', '2025-05-26 15:50:04'),
(8, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:50:09', '2025-05-26 15:50:09'),
(9, 2, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 15:50:16', '2025-05-26 15:50:16'),
(10, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:50:20', '2025-05-26 15:50:20'),
(11, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:50:32', '2025-05-26 15:50:32'),
(12, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:50:37', '2025-05-26 15:50:37'),
(13, 2, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 15:51:10', '2025-05-26 15:51:10'),
(14, 2, 'downloads_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/downloads\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"downloads.index\\\"}\"', '127.0.0.1', '2025-05-26 15:51:12', '2025-05-26 15:51:12'),
(15, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/downloads\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 15:51:14', '2025-05-26 15:51:14'),
(16, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:51:15', '2025-05-26 15:51:15'),
(17, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":null,\\\"route\\\":\\\"home\\\"}\"', '127.0.0.1', '2025-05-26 15:56:58', '2025-05-26 15:56:58'),
(18, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 15:57:02', '2025-05-26 15:57:02'),
(19, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:57:05', '2025-05-26 15:57:05'),
(20, 2, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":null,\\\"route\\\":\\\"home\\\"}\"', '127.0.0.1', '2025-05-26 15:59:46', '2025-05-26 15:59:46'),
(21, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 15:59:51', '2025-05-26 15:59:51'),
(22, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/purchase\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"route\\\":\\\"tokens.purchase\\\"}\"', '127.0.0.1', '2025-05-26 15:59:57', '2025-05-26 15:59:57'),
(23, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/purchase\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:00:04', '2025-05-26 16:00:04'),
(24, 2, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/purchase\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"route\\\":\\\"tokens.purchase\\\"}\"', '127.0.0.1', '2025-05-26 16:02:04', '2025-05-26 16:02:04'),
(25, 2, 'logout', NULL, NULL, NULL, '127.0.0.1', '2025-05-26 16:02:05', '2025-05-26 16:02:05'),
(26, 1, 'login', NULL, NULL, NULL, '127.0.0.1', '2025-05-26 16:02:24', '2025-05-26 16:02:24'),
(27, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"POST\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"route\\\":null}\"', '127.0.0.1', '2025-05-26 16:02:24', '2025-05-26 16:02:24'),
(28, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/login\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:02:24', '2025-05-26 16:02:24'),
(29, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:02:29', '2025-05-26 16:02:29'),
(30, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:02:37', '2025-05-26 16:02:37'),
(31, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:02:39', '2025-05-26 16:02:39'),
(32, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\\\\/stats\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"dashboard.stats\\\"}\"', '127.0.0.1', '2025-05-26 16:02:43', '2025-05-26 16:02:43'),
(33, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:02:48', '2025-05-26 16:02:48'),
(34, 1, 'schedule_created', 1, 'ScheduledTask', '\"{\\\"platform\\\":\\\"youtube\\\",\\\"format\\\":\\\"mp4\\\",\\\"quality\\\":\\\"720p\\\",\\\"scheduled_for\\\":\\\"2025-05-27T23:02\\\",\\\"estimated_tokens\\\":15,\\\"title\\\":\\\"YouTube Video\\\"}\"', '127.0.0.1', '2025-05-26 16:03:05', '2025-05-26 16:03:05'),
(35, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"POST\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.store\\\"}\"', '127.0.0.1', '2025-05-26 16:03:05', '2025-05-26 16:03:05'),
(36, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:03:07', '2025-05-26 16:03:07'),
(37, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":null,\\\"route\\\":\\\"home\\\"}\"', '127.0.0.1', '2025-05-26 16:09:35', '2025-05-26 16:09:35'),
(38, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:09:45', '2025-05-26 16:09:45'),
(39, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"admin.dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:09:53', '2025-05-26 16:09:53'),
(40, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"admin.dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:09:59', '2025-05-26 16:09:59'),
(41, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:10:02', '2025-05-26 16:10:02'),
(42, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:10:12', '2025-05-26 16:10:12'),
(43, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:10:17', '2025-05-26 16:10:17'),
(44, 1, 'schedule_created', 2, 'ScheduledTask', '\"{\\\"platform\\\":\\\"instagram\\\",\\\"format\\\":\\\"mp4\\\",\\\"quality\\\":\\\"720p\\\",\\\"scheduled_for\\\":\\\"2025-05-27T23:10\\\",\\\"estimated_tokens\\\":12,\\\"title\\\":\\\"Instagram Post\\\"}\"', '127.0.0.1', '2025-05-26 16:10:25', '2025-05-26 16:10:25'),
(45, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"POST\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.store\\\"}\"', '127.0.0.1', '2025-05-26 16:10:25', '2025-05-26 16:10:25'),
(46, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:10:25', '2025-05-26 16:10:25'),
(47, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":null,\\\"route\\\":\\\"home\\\"}\"', '127.0.0.1', '2025-05-26 16:12:05', '2025-05-26 16:12:05'),
(48, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:12:09', '2025-05-26 16:12:09'),
(49, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:12:19', '2025-05-26 16:12:19'),
(50, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:13:19', '2025-05-26 16:13:19'),
(51, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:13:22', '2025-05-26 16:13:22'),
(52, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:13:25', '2025-05-26 16:13:25'),
(53, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:13:29', '2025-05-26 16:13:29'),
(54, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:15:25', '2025-05-26 16:15:25'),
(55, 1, 'schedule_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"schedules.create\\\"}\"', '127.0.0.1', '2025-05-26 16:15:25', '2025-05-26 16:15:25'),
(56, 1, 'schedule_created', 3, 'ScheduledTask', '\"{\\\"platform\\\":\\\"tiktok\\\",\\\"format\\\":\\\"mp4\\\",\\\"quality\\\":\\\"720p\\\",\\\"scheduled_for\\\":\\\"2025-05-27T23:15\\\",\\\"estimated_tokens\\\":9,\\\"title\\\":\\\"TikTok Video\\\"}\"', '127.0.0.1', '2025-05-26 16:15:34', '2025-05-26 16:15:34'),
(57, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"POST\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.store\\\"}\"', '127.0.0.1', '2025-05-26 16:15:34', '2025-05-26 16:15:34'),
(58, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:15:35', '2025-05-26 16:15:35'),
(59, 1, 'schedules_list', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\\\\/create\\\",\\\"route\\\":\\\"schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:15:42', '2025-05-26 16:15:42'),
(60, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/schedules\\\",\\\"route\\\":\\\"tokens.balance\\\"}\"', '127.0.0.1', '2025-05-26 16:15:50', '2025-05-26 16:15:50'),
(61, 1, 'tokens_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/purchase\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/balance\\\",\\\"route\\\":\\\"tokens.purchase\\\"}\"', '127.0.0.1', '2025-05-26 16:15:53', '2025-05-26 16:15:53'),
(62, 1, 'page_view', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/tokens\\\\\\/purchase\\\",\\\"route\\\":\\\"dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:15:58', '2025-05-26 16:15:58'),
(63, 1, 'download_create', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/downloads\\\\\\/create\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"downloads.create\\\"}\"', '127.0.0.1', '2025-05-26 16:16:02', '2025-05-26 16:16:02'),
(64, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/dashboard\\\",\\\"route\\\":\\\"admin.dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:16:04', '2025-05-26 16:16:04'),
(65, 1, 'admin_users_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/users\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"route\\\":\\\"admin.users.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:12', '2025-05-26 16:16:12'),
(66, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/users\\\",\\\"route\\\":\\\"admin.downloads.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:13', '2025-05-26 16:16:13'),
(67, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"route\\\":\\\"admin.schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:15', '2025-05-26 16:16:15'),
(68, 1, 'admin_users_manage', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/users\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/schedules\\\",\\\"route\\\":\\\"admin.users.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:16', '2025-05-26 16:16:16'),
(69, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/users\\\",\\\"route\\\":\\\"admin.dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:16:16', '2025-05-26 16:16:16'),
(70, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"route\\\":\\\"admin.downloads.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:41', '2025-05-26 16:16:41'),
(71, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"route\\\":\\\"admin.schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:16:43', '2025-05-26 16:16:43'),
(72, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/schedules\\\",\\\"route\\\":\\\"admin.downloads.index\\\"}\"', '127.0.0.1', '2025-05-26 16:17:02', '2025-05-26 16:17:02'),
(73, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"route\\\":\\\"admin.dashboard\\\"}\"', '127.0.0.1', '2025-05-26 16:17:05', '2025-05-26 16:17:05'),
(74, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/dashboard\\\",\\\"route\\\":\\\"admin.downloads.index\\\"}\"', '127.0.0.1', '2025-05-26 16:24:14', '2025-05-26 16:24:14'),
(75, 1, 'admin_action', NULL, NULL, '\"{\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/schedules\\\",\\\"user_agent\\\":\\\"Mozilla\\\\\\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\\\\\\/537.36 (KHTML, like Gecko) Chrome\\\\\\/136.0.0.0 Safari\\\\\\/537.36\\\",\\\"referrer\\\":\\\"http:\\\\\\/\\\\\\/127.0.0.1:8000\\\\\\/admin\\\\\\/downloads\\\",\\\"route\\\":\\\"admin.schedules.index\\\"}\"', '127.0.0.1', '2025-05-26 16:24:17', '2025-05-26 16:24:17');

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

--
-- Table structure for table `downloads`
--

CREATE TABLE `downloads` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `platform` varchar(255) NOT NULL,
  `url` varchar(255) NOT NULL,
  `title` varchar(255) NOT NULL,
  `format` varchar(255) NOT NULL,
  `quality` varchar(255) DEFAULT NULL,
  `duration` int(11) NOT NULL DEFAULT 0,
  `token_cost` int(11) NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT 'pending',
  `progress` double(8,2) NOT NULL DEFAULT 0.00,
  `file_size` int(11) DEFAULT NULL,
  `file_path` varchar(255) DEFAULT NULL,
  `storage_path` varchar(255) DEFAULT NULL,
  `storage_url` varchar(255) DEFAULT NULL,
  `storage_provider` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `error_message` text DEFAULT NULL,
  `completed_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `instances`
--

CREATE TABLE `instances` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `migrations`
--

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

--
-- Dumping data for table `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, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2025_05_16_095019_create_billing_logs_table', 1),
(6, '2025_05_16_101131_create_downloads_table', 1),
(7, '2025_05_17_082142_create_scheduled_tasks_table', 1),
(8, '2025_05_17_082212_create_activity_logs_table', 1),
(9, '2025_05_17_082304_create_token_transactions_table', 1),
(10, '2025_05_20_203553_add_oauth_columns_to_users_table', 1),
(11, '2025_05_21_002617_add_error_message_to_downloads_table', 1),
(12, '2025_05_21_050814_add_completed_at_to_downloads_table', 1),
(13, '2025_05_22_000756_add_error_message_to_scheduled_tasks', 1),
(14, '2025_05_22_101830_create_jobs_table', 1),
(15, '2025_05_24_082336_add_storage_path_to_downloads_table', 1),
(16, '2025_05_25_224557_create_instances_table', 1),
(17, '2025_05_26_125036_create_token_purchase_requests_table', 1);

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

--
-- Table structure for table `scheduled_tasks`
--

CREATE TABLE `scheduled_tasks` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `url` text NOT NULL,
  `format` varchar(255) NOT NULL DEFAULT 'mp4',
  `quality` varchar(255) DEFAULT NULL,
  `scheduled_for` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` varchar(255) NOT NULL DEFAULT 'scheduled',
  `platform` varchar(255) NOT NULL,
  `download_id` bigint(20) UNSIGNED DEFAULT NULL,
  `error_message` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `scheduled_tasks`
--

INSERT INTO `scheduled_tasks` (`id`, `user_id`, `url`, `format`, `quality`, `scheduled_for`, `status`, `platform`, `download_id`, `error_message`, `created_at`, `updated_at`) VALUES
(1, 1, 'https://youtu.be/UvxBqO_nkis?si=voStXV-2JsKXlI9i', 'mp4', '720p', '2025-05-27 16:02:00', 'scheduled', 'youtube', NULL, NULL, '2025-05-26 16:03:05', '2025-05-26 16:03:05'),
(2, 1, 'https://www.instagram.com/reel/DJYPOcRzv1m/?igsh=MXFoZnJybnpsaHNncA==', 'mp4', '720p', '2025-05-27 16:10:00', 'scheduled', 'instagram', NULL, NULL, '2025-05-26 16:10:25', '2025-05-26 16:10:25'),
(3, 1, 'https://vt.tiktok.com/ZShvGYtwE/', 'mp4', '720p', '2025-05-27 16:15:00', 'scheduled', 'tiktok', NULL, NULL, '2025-05-26 16:15:34', '2025-05-26 16:15:34');

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

--
-- Table structure for table `token_purchase_requests`
--

CREATE TABLE `token_purchase_requests` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `package_id` varchar(255) NOT NULL,
  `package_name` varchar(255) NOT NULL,
  `token_amount` int(11) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `discount` int(11) NOT NULL DEFAULT 0,
  `payment_method` enum('bank_transfer','e_wallet','credit_card') NOT NULL DEFAULT 'bank_transfer',
  `status` enum('pending','approved','rejected','cancelled') NOT NULL DEFAULT 'pending',
  `user_notes` text DEFAULT NULL,
  `admin_notes` text DEFAULT NULL,
  `payment_proof` varchar(255) DEFAULT NULL,
  `processed_by` bigint(20) UNSIGNED DEFAULT NULL,
  `processed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `token_transactions`
--

CREATE TABLE `token_transactions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `amount` int(11) NOT NULL,
  `balance_after` int(11) NOT NULL,
  `type` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `download_id` bigint(20) UNSIGNED DEFAULT NULL,
  `admin_id` bigint(20) UNSIGNED DEFAULT NULL,
  `resource_id` bigint(20) UNSIGNED DEFAULT NULL,
  `resource_type` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `token_transactions`
--

INSERT INTO `token_transactions` (`id`, `user_id`, `amount`, `balance_after`, `type`, `description`, `download_id`, `admin_id`, `resource_id`, `resource_type`, `created_at`, `updated_at`) VALUES
(1, 1, 9999, 9999, 'initial', 'Initial admin token allocation', NULL, NULL, NULL, NULL, '2025-05-26 15:47:35', '2025-05-26 15:47:35'),
(2, 2, 100, 100, 'initial', 'Initial token balance for new user', NULL, NULL, NULL, NULL, '2025-05-26 15:47:35', '2025-05-26 15:47:35'),
(3, 3, 100, 100, 'initial', 'Initial token balance for new user', NULL, NULL, NULL, NULL, '2025-05-26 15:47:35', '2025-05-26 15:47:35'),
(4, 4, 100, 100, 'initial', 'Initial token balance for new user', NULL, NULL, NULL, NULL, '2025-05-26 15:47:35', '2025-05-26 15:47:35'),
(5, 5, 100, 100, 'initial', 'Initial token balance for new user', NULL, NULL, NULL, NULL, '2025-05-26 15:47:35', '2025-05-26 15:47:35');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `activity_logs`
--
ALTER TABLE `activity_logs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `activity_logs_user_id_foreign` (`user_id`);

--
-- Indexes for table `downloads`
--
ALTER TABLE `downloads`
  ADD PRIMARY KEY (`id`),
  ADD KEY `downloads_user_id_foreign` (`user_id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

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

--
-- Indexes for table `scheduled_tasks`
--
ALTER TABLE `scheduled_tasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `scheduled_tasks_user_id_foreign` (`user_id`),
  ADD KEY `scheduled_tasks_download_id_foreign` (`download_id`);

--
-- Indexes for table `token_purchase_requests`
--
ALTER TABLE `token_purchase_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `token_purchase_requests_processed_by_foreign` (`processed_by`),
  ADD KEY `token_purchase_requests_status_created_at_index` (`status`,`created_at`),
  ADD KEY `token_purchase_requests_user_id_index` (`user_id`);

--
-- Indexes for table `token_transactions`
--
ALTER TABLE `token_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `token_transactions_user_id_foreign` (`user_id`),
  ADD KEY `token_transactions_download_id_foreign` (`download_id`),
  ADD KEY `token_transactions_admin_id_foreign` (`admin_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `activity_logs`
--
ALTER TABLE `activity_logs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=76;

--
-- AUTO_INCREMENT for table `downloads`
--
ALTER TABLE `downloads`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `instances`
--
ALTER TABLE `instances`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `scheduled_tasks`
--
ALTER TABLE `scheduled_tasks`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `token_purchase_requests`
--
ALTER TABLE `token_purchase_requests`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `token_transactions`
--
ALTER TABLE `token_transactions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `activity_logs`
--
ALTER TABLE `activity_logs`
  ADD CONSTRAINT `activity_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `downloads`
--
ALTER TABLE `downloads`
  ADD CONSTRAINT `downloads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `scheduled_tasks`
--
ALTER TABLE `scheduled_tasks`
  ADD CONSTRAINT `scheduled_tasks_download_id_foreign` FOREIGN KEY (`download_id`) REFERENCES `downloads` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `scheduled_tasks_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `token_purchase_requests`
--
ALTER TABLE `token_purchase_requests`
  ADD CONSTRAINT `token_purchase_requests_processed_by_foreign` FOREIGN KEY (`processed_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `token_purchase_requests_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `token_transactions`
--
ALTER TABLE `token_transactions`
  ADD CONSTRAINT `token_transactions_admin_id_foreign` FOREIGN KEY (`admin_id`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `token_transactions_download_id_foreign` FOREIGN KEY (`download_id`) REFERENCES `downloads` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `token_transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;

