-- Host: db-master-2.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=42529;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$J8U8MUDNRHOYcYJTIUeebtvDzH24j6.vaIlkmKYPhyR02mmq4Na6G','user','ak_1520141fbc429e4b','2023-12-25 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$4uafCknwT8rhBNnHLLG0I5tLL1arcQ1QohXIyUjsWaIsp.CBmJdC4','user','ak_9bdef6a753e997ce','2023-06-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$6T4HtsW1vSGXryj8icCiwtav52xlpKKtyUPyDYJr03roSw8Hb6Noo','user','ak_06fbfbf6a1ccb817','2023-05-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$nxhh6TgGn.A9GlhAYFOAhWdO4Q4igYrDnr7G85FXCFqVGlkQYMJn5','user','ak_9f60f07ca192339b','2023-08-11 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$YypdZjK27KzUjOrh2b5Z46M4u7ucdYD6vuSQEZFaYliRGCbtY5wHy','admin','ak_72d5e37da0343be8','2023-02-20 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$prou6BdR5a60QQPx3n5Xz9oogxxqVlNd6YFtW83SYks6Oj5vkkHal','admin','ak_ec1ed5b651c245f5','2023-02-19 10:05: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=43768;

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


