-- Host: db-master-4.internal    Database: analytics


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=6738;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=16953;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$KH3FYg4SYHdlbCWSZZGN5KxW4mTHITm2U8ZR0Wy95XldsS1YHB5LQ','admin','ak_868809475a02f467','2023-07-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$OhDCSuBeDqML0M2tawn6euslQCSyZ/QEHzvZ/qDIPoO0EkK1/Pz2q','admin','ak_e346ca5d94478111','2023-04-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$rCPNDvV4hW.VmqR4BgnK.jJ59W3/ij.nmEv2UQ534W1QHyAmzJOqR','admin','ak_a8e5c7c086e517aa','2023-04-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$5dAbJv1HGmsD3WSZs0.nff9hpNLw91dZkg0tsvK6M.6U9E2c/RClN','admin','ak_f757662f50e53855','2023-06-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$1oApdbZSywHUTzlIWVQEovOuwDfwJTio6lc9upahn8IlOmr3/W7//','admin','ak_9f6b3c9f9b4bd907','2023-05-25 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$kv8DfYhAtHQg/Mivm8LEACMvAFhhkeodlXOdt4itOccerSwsxUs0V','admin','ak_7a756801656b5b44','2023-10-18 10:01:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=16557;

--
-- Dumping data for table `sessions`
--


