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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=8252;

--
-- Dumping data for table `orders`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$TwyAaviloID7TG01R/GMXvj7SIxx8Cy.z8hN6BEsGe1f4rlxUUxEt','user','ak_c6e3cdd703cd7006','2023-12-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$EbuUoeTmN.mMOhyKp9nu6RW0C7wREnC6fPQ.hUquyPHssb9Ttizg9','admin','ak_045926349ed00b7a','2023-04-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Ub.alBRc8kchWdq6iguiOWXCbuNlRZ0bUCIgZonZP8MAZdgYfml3C','admin','ak_6ee730e21e6f8686','2023-10-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$xUjv0TGfKAyNJAqpjsBLkjrldWru3v1jJTD3olKyogzGcITifmxPW','user','ak_0eadc5c828e8accb','2023-02-20 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$fTBnwWANsohPYs77Q/fa3.xNGqKSTBhwOPV5hLZ1GlmmbwTh9Fjd4','user','ak_e356528a1d7f4f5f','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$sMYwS.S7gQl7M3g4qZYUkclbLsHjYHWJJTxkDtHmdLZHeT472MQiI','user','ak_df58e73fffac4232','2023-04-10 10:00: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=27999;

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


