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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ttwqJvxnJ8gqlneGxMUWlzjIAXt0CI3LQAjbVb7U20fDii2jUBNKa','user','ak_3ecf62e60ec2e786','2023-10-17 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$YCid8ibeUT4Oucw9FMI6z2Mo2tRRx5xFaf/EZjbybTiVnWy26cTg2','user','ak_77582e595c90fa90','2023-03-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$5cWCIm4f3sRWdSh45CGFuC/fMPQyaeVGgDisS4n4QVc.6XcTrdC2q','user','ak_73e5f41e4041481a','2023-06-21 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$8L3vX8Spgaz7QK0XB4h0oCTfGYZQ5mnRNrmbeN71Bfn9qZ7YEq17R','user','ak_2b06e0cbde1689f2','2023-05-11 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$PYIJnbOJQKDMT3tCAMyhFYy2K1FeMOghjF1GMcPHmI8eBTxoP2wI3','admin','ak_fd0dc198a96ab30d','2023-08-21 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$Uk9wdNIDQnC80Ro2vnNZzfeghpEh.OIH26aRm8Ue/iHL8uMjhlfs4','admin','ak_b557a4f1b8060475','2023-11-28 10:00:00',NULL);

