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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$9C9m2Y6Unhh8L7zS/WFeNQcSUWDr9Nq27TUgqhVNlikjnedVhG9BP','admin','ak_8f0958381bfcf7d4','2023-11-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Plmo/f1a5BOERG3fNZSZQjvq1EQAu1oY9.51aBEg/ZQfVBj.iqEMJ','user','ak_107c05c97f3b2f91','2023-02-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$LwXIb3x4BaLG4va6JI3mZqEBmWixqHTgxyNCEVrvSH.EQqEWUp.Al','admin','ak_f458fff1140f5260','2023-10-12 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$6iW8xfbkKtG2s606jJPuexcVsnpzWJRTELq8XDz7teQig7eqD2T9y','user','ak_99982923d6c2732e','2023-01-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$FBIl8S0Y4WqL.yboBcPV3PQr6Rk6wtgvn5M86CePv7DJLNl8rU4KS','user','ak_dda2755463cf8055','2023-06-14 10:21:00',NULL);

