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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$3gDzoDtn9OO1DuVtOjXofypzoCEB7ktbsXIma9tfm/fRzoHsAw1mF','user','ak_c644c28d3f182959','2023-03-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$POYzZGHDJE0VgIetik/Ktc607KkKUTYGWJccxrUP0eS3zUvrCVsQE','admin','ak_317afc12df82b122','2023-10-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$VnsLyGcySHEbSGNzV0XG2yg8//kmvQMaqMr9ezc7aCA26Di2x1ry2','admin','ak_b1e61f90a647921b','2023-07-13 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$HWIwCX4eQafTPMTscaTWaSp9yRkqUjsikEVj1HT8q/Q3ZwIHwhuXH','user','ak_dcd043274d6dfaab','2023-01-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$czQM2lmaKQZgAfYgPQSYRX1LSZXAhI5yo0fmxQmrrkSR.T7FxL3T/','user','ak_ec51007883d129e9','2023-12-24 10:06:00',NULL);

