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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$cxcrMItl8RqmiZc6YhZRAraPwK9aGy7pnKYA8Cxrb4l5F1.Jb2GS2','user','ak_5f85d6f87951868a','2023-03-15 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$W6SHcJM3DuAM5.ZqFWyL7eJY4gusfaQIt4aubBq1wH8mEfO/2tuT8','user','ak_cc1e5988f7b0f9ed','2023-07-09 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$dafcVpy7wbH7h5YIrdn/oaNGQis/9YJQtQTQbGF1K3vSURWx.Aluf','user','ak_9c00b5b45b9393ad','2023-03-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$4y0tMFu1Q4NffIMDKcghr6L/hyJ8dLl4RG6WcjVuqOksy1I/52XmN','user','ak_970921b4b75dc0b3','2023-12-12 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$tQKXH0pkyP/o6eDhW0rAkizSyBJUBm5p7jN9GzRTy2l.g8TOaGpf1','user','ak_b49186319fd6399b','2023-11-13 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$n0q2VA/YeUtRmpGmzGS8VEAPEbds9hXt2F9tUVV.MuIEI4B3OycCP','user','ak_cade44f353dfe875','2023-04-13 10:13: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=24592;

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


