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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$VpcUgNbeQ./b8XAJY2xwU7Y0A8mQkfSgGFzo8M/s/wLlq6lS5.X1D','admin','ak_fd7ec223fda340f7','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$j2I3Ry9lZchGivZ51MXCVvsiNL3surerA1ksCOATi5MOmMl/ChEtG','user','ak_6f94513ada19c87e','2023-09-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$oyzc8/kLz9PE6YwGCTnJLM8g1BoQIEwAMUvAGdoEamL15V1yC2vzg','admin','ak_168a1cb6606f2650','2023-08-05 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$HtQCf7xI/TARluR6w6tonQTtLM.2kXZdmX4KqS4c8R/Ier.JxOqVx','user','ak_94cced81def9b859','2023-02-24 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$0D6Gol7BRD9XL0yJ3MhrtuoNWhz1bcnSKnl9BYXON406ifSjCWsu5','admin','ak_06f2870da7723ebf','2023-09-05 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$WCRCpCPdgokuJ.BHgkJgRzDHark/uIiiicgQT6/.BVObN0QKH8xto','user','ak_d937471ad0bc2c7d','2023-06-07 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$FYrxKnjIiC4jlC1r00QKQBmy4G6s37C5392EUrt6CpyS4gKsMp0cR','user','ak_b899334aae865222','2023-01-10 10:08: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=41899;

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


