-- Host: db-master-3.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=50422;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$rjRp793P19KSkBWxgRM1BYEksCOZNKlh0rL6ncEDvfJzQ5o5L5tey','user','ak_7c9c6215a0831c02','2023-05-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$DYfDVXUYYeGdhsllxZsoIi84rh32vYxB2CiDvIDaWCW5LviFjmQ/a','admin','ak_eb2448014238689e','2023-01-12 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$kIq6J2cqIGcpGiex.KfsUBznAVV3FoqSk2XDGS3KYSlbNzZGTl16J','user','ak_8f219782ad1112da','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$cx8uoYsS7hGEBhacOoZ.Shn.ziDpvPVJ/xr3YrawAwIBdYDr/Ws30','user','ak_ea04ada7ca2b40a9','2023-07-13 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$q9o5O980tl25ZIH95auK3/8uI/p8aUxP1zkSlXzI/t/qav4zU2uHo','user','ak_413e71438b1fae14','2023-09-23 10:08: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=43889;

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


