-- Host: db-master-1.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=10978;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$SRSr/IN26Ik8OfptQlJ1qZhGdufASIuA2sua81jAeAvLMWU51DOh1','user','ak_9cc63c35fb5e3235','2023-07-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$qpV0o9CDRyP5czXyRI4VboiusRIGiYmgA.punxnfKE9FmBczuHsbg','user','ak_aa3ac209b4e2381b','2023-11-21 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$Y/d2.wXxvVYVVlIIQfOHVRz8Mtf0vif8cTVL/2HYJ3ZW7uU0wY.e0','admin','ak_65e87a643f904c06','2023-06-04 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$BfRHmK7dJ66BfTrjtudV1jIiwP8RQD3N0q/lkROv.iArpcZ2iN7JF','user','ak_a6e2b30feeba1a85','2023-12-09 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$sGysxbBLNHOudGN4RoUDYwikzGwgrTZujOUcqdTjzspyaotMrjQIT','user','ak_83a414906e33aa1f','2023-08-16 10:11:00',NULL);

