-- Host: db-master-9.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Kda8FaB4d5/QUgs3ksPhIvtwBlutcLUGhBOP1hFjdqCqYeK8yAXcS','admin','ak_c6076d8308fe539d','2023-09-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Ht/TgK7t0z1WVg7eGJonVPvXtlGDAPW6VoZw8d0NCdNtljCUqwM.X','user','ak_1d06500f059e55c6','2023-10-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$HVAV6vQuqc5jcE4aPV7vfWaTNo4TQsWfqfaQ5gdych6vjTwjh3BfY','admin','ak_0d24d79b7ea2b011','2023-10-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Sn6zGPyUmJo/71fptMdbMjOgcaG7nhvN93VUx3gyjmKpel1rYAEeG','user','ak_cc74244047e66711','2023-05-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$XWVHNvnfdrIaD3zBARBsLX.jjs8SC2h2xg.OP5A/3QlcDJV7.zBrK','user','ak_7299fb70907bd32c','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$VFMxkX2fw16rOKkbKkC5JqNojK4YR3AHtsy3x.zsYtO8dZS4bFNCf','user','ak_ef0e9d3d80915551','2023-06-26 10:00:00',NULL);

