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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$KrRR6kGHTqXDEvbBGPvN5K5ln2391HEvTuCMau.qetyII6gYXxnkC','admin','ak_52e58570f28db9f4','2023-09-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$qjRMCoRK56iaqb2FgSoZbd4Iabm/ilqZaf2vgpdjrOM5cqaOogZx4','admin','ak_1d61d2a88d9aef64','2023-06-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$q/IaeqQsMqIdfOw/l7u5HycrYQsDEJy1fayBwrL2HIBFh/NliumD9','admin','ak_e8bdc633d53d6ebb','2023-01-21 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$vHRALklSHpmO1RFW38UJ0Njd4C5cvR5gfAwaYJg3Uqmnlpb8X5lqD','user','ak_c03f8581b31e2f7b','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$rxu8m12K2fPc1.AX6mqcCfddnOT6oouA9dxat7aZzXvlwVxq/cXFc','user','ak_3f8cd41f696cc28a','2023-11-17 10:02:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=4290;

--
-- Dumping data for table `audit_log`
--


