-- Host: db-master-2.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=15412;

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


--
-- 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=41400;

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


--
-- 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=16480;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$WYFOMMrNlT/5OUUK5BuvGT.hWBRmWfz3nJE1jz3pPepoYmvSGXEUx','user','ak_f710d08bcd19f21a','2023-05-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$J9w37iwbTWJBolf6Mr3NkT2SX/SBvREpIDAFDAj.R05osdKHJeoYq','user','ak_2096f37cf561381b','2023-10-22 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$exTE1SlA51Bxyv3YtNBa7Q/rOYUN2KQ7G0cKRF8RvbwYE01Ghp.x5','admin','ak_c260d85ad1ef0ea9','2023-08-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$e9HVEA8zTZr/1ngUWGTqi1STuqSHWoytwte/nCnLNChyCMAslgl0N','user','ak_872dd34cb40dcaeb','2023-09-27 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$63XHNibYfOMoiltGTpi2aRgEn9WTWVIaC77JaahjdA7Kr5oGapP6z','user','ak_fa3d4628d89baeef','2023-04-10 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$ZPPQT5VCANqwTiWatEPLA3gvlLF4rkDA/Hqv8LjoOLOd..QroA2Jq','user','ak_d1549df7daf047a8','2023-01-22 10:11:00',NULL);

