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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$j9bDu0h83ejIUIajnF3xSLvycbx2Rpdp9ELASStC0X564WK/2GWGg','user','ak_d22664f5fba35711','2023-09-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$TmqIjSgToSm7yRkC1qF.JNQ8N.h41gmLGKjJObvUNC9F4fmuFJNF3','user','ak_bc8118b97d723a3a','2023-04-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$0eimDkaI71x90nTI9y26zhAfIy39tTT.PatTurLvKuPRCIje6M1O6','user','ak_0cf052beb5e0f3b3','2023-03-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$2qaA6p7yNrPC8wKkeEdWAg2jNag.rLr85SLi5/V8Qa84QTqTL4Jiq','admin','ak_6cbd3c8424a69729','2023-04-12 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=27039;

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


