-- Host: db-master-1.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=44246;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$s6VnnldfsakL6ne9X9PF2sLOhmYmm/8Wx.OqaLy3bhK1.vKyv1vzQ','user','ak_f767d2c7fbe81289','2023-01-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$2QWiDabOW50P4x4HBsZzZdJeM09QTppsIaVPuYfNUqfQEeIuQynSu','admin','ak_c27e35fcf7bbd591','2023-01-28 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$aflJFP5ntC.DTywrODdWE37VZ0hdhxwmXp1Nh2taU0OMSiYcWNn44','admin','ak_44086d9212713cf1','2023-10-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$IHlvMV3a3z2kFlsX.7Fb1Toe6F60hobEOv.Tcdl0VWO8PEztAcXGR','user','ak_e96162a678e3acf1','2023-01-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$/cq/taDwQGoIrxfe9RxBskervPQYppe8GzxdbzVtr.7nwJ61T3fM6','user','ak_2d62661a0e60c26b','2023-04-16 10:19:00',NULL);

