-- Host: db-master-4.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=2387;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$/GovET0dYUCHYyANhOW66z7UBHjqu.l7PmZn9EYyaHBi/zgFGS.t/','user','ak_56c9baaa57cfac96','2023-12-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$zos6AkVQmZONQOV4C5FUYKzQRgGC777wNtNaP2VMqwgMHTed9AS0M','admin','ak_054386b46502e3fd','2023-07-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$bC3EbUZWzcw0RD4Ez3OoMUAv2v.dAxFb8sIZ0tOUW3F3PwHBzqZ66','admin','ak_bb6f549f0b282050','2023-04-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$iwP30sPSyaTCHFSexxWwc8JEVcd4xJy2VC93HB.bLMdsnE6EEvugn','user','ak_0114d310c4f513c4','2023-10-25 10:11:00',NULL);

