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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$UN5YqbSUZMM2aBOeJ2MBrIuUUqiWGW6CoY6jZMxPebDZeXjen5QrJ','user','ak_433eb36712498eff','2023-12-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7uQ6bowRWDRN4P9JVzHTnVMnZL6zWXBIpwtDb6q1iu5cwf.CPNS1Y','user','ak_4521f7bd67aec664','2023-11-22 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$OTsLxA4pZNkdt0uLjc6HuPcu0o0YPc5n3.B80f36HyOkERwIcPDKl','admin','ak_afe87115ba01a561','2023-06-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$mIKgec5vnmYz3O8xCrYkAU7q32tcHH/0R9HVHPDpEKCVJjuImAJdL','user','ak_48512aa5b2cde877','2023-05-05 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$XR8PNpu6SRfxClycjUkjL19zPLS3KBlj.NNlgnMzG/Gq.AqUXBYIr','user','ak_7b338e59d403d203','2023-08-18 10:10:00',NULL);

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

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


