-- Host: db-master-6.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=1707;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$5U4L39W2YLrFu6ilWo8PA3N4AoGkvbL/jLbDuGrcEzSBoUrPw.O/s','user','ak_91b7b4065d14cf73','2023-10-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$8K3g0CW3XsmbjxMlSxaX4V5sZUrJ7gRuILcvmJ/eVcyz0tgXxc1oJ','admin','ak_ed4d1924f1b1cbab','2023-08-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$6a2JIXqyldewdXJ0dO6s1w6.1tEBcXdWrwS/kNbGR2darpaeeaA.x','admin','ak_dc67ff880cc41fd7','2023-04-05 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$DSL5yyHS/q/3WvY5Z32cDGiaBLofgbJipQrYwf3vcJL/qWSNGI4Yy','user','ak_65c581caea00c84e','2023-09-03 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$GbJX9t68/RjHfhi8v5X/yu.0ZRiQTzF6gLp0ipcn87XY2cg3Y90m.','user','ak_99175a614871bbe3','2023-09-28 10:13:00',NULL);

