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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$jCtSB5aFWfeHKQ8yLnkBNaim.cksCbrBiS.rotIa76gnOFG1hSHMA','admin','ak_fdedaa946bb06f97','2023-05-01 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$UTd5nGoIDmg1x2HwpacmhoujZV3T0k4xoLl8gg7ewXZv9G1TvGVl6','user','ak_c00c7580e98ae7a4','2023-09-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$MqEzt99tzkbjEvX0QmEvkSuj8mna7qmT/UOjd4sslGbskT.C8mqQr','admin','ak_55826cfab6e6a87e','2023-02-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$FFcnAgNZ3o9xq0LIusCAshDIGxJUVBckNO/gX/ftLyxA7m6rMv/D0','admin','ak_9334cdde4908cbd6','2023-07-15 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$4pMDa3CI8LgZvw8JaEGjHrK4TGxaLMm4dffaDsrG11dQXt.iaAX90','admin','ak_5f80e04fdeb101b0','2023-01-20 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$lM.Dm0SYpqG6ZxwGkGMJA0mpDYiklRgtB51lsYbWf.pdeyBVqK859','admin','ak_c0a02ee18597bd35','2023-07-02 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$ybbb7SYNpqdBT2CYjNzWF9acYg/lI1jcaQ0X5XI7RQwaDrU6vYYDN','user','ak_b5378ea7b6dd3e93','2023-02-24 10:05:00',NULL);

