-- Host: db-master-9.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=12232;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$KKhV3e523An0/uMNGDsuJBVRiV45upCnHPM/j3q2uey1LglK/Dp3c','admin','ak_f3c0d27e4d702aba','2023-10-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$8hEhtEJ9DhY9UeOpwzm5zb8iN.6k89kSJG0HcBz2dz9ek4tNCky3a','user','ak_e68c3cf91cf5c9c5','2023-05-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$sbYON4AYKjKPL3Cf06TFWt5kpO0BU1v0agEzabkghv2Gz4xqM0/SL','user','ak_293d08602fc34d4d','2023-08-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Xxy4XbovHWzA1mraeLCtjFYN9ciHyi2F12MYBdYqRI/8DRRFNAnHm','admin','ak_a1aedfd4cef3d4c7','2023-09-09 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$M5U1TexZ8q0RRSWmf6ThukQ3T/15.cKUE6k0uJ6GVhZH6vy3g1kZS','admin','ak_aa61a44ead819940','2023-11-24 10:11: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=35994;

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


