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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$lq7pQJKf7mKP0KnuHsz10N4arH0a/B9pmikjsn8tF5s1HkZsH/ZSh','user','ak_2d9de8a5d4212261','2023-07-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$mFZpPgAXmpp0BC49vKHQnOQWDMZEdll0BrKSk32kDdhEDmduHE5RT','user','ak_2bee5bbb55d59cc8','2023-11-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$8zYS4qzHMqagtAnO/sNGEuV.c7NaYpmW/sKT.x25yRwALfiElRPiG','admin','ak_51b71cc02fe2b9b8','2023-01-27 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Co.XNdTgPUZ/RneguJZgOXSZORgtoBW9zumyZPf7UpsvfiUvzbucT','user','ak_25c0c2a4cde2a3a9','2023-04-12 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$ruzM7KJjMp7o77vxtPeBdYWP1sizM96aA44L4n1WO24MBaHuZM1fm','user','ak_5407ff21db073faf','2023-01-04 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$xvuBVZiFqR8Y6O9aDVo/5HE4jlXLdytg8gAQ2D6.M8BIU9TXucguH','admin','ak_6ad24132df99ad54','2023-05-26 10:19:00',NULL);

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

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


