-- Host: db-master-3.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=22337;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$lq5jiRo5L/OtmQVMXP4.SGrO2W68stFlBOe..fP9VcXchOCUrrPWf','user','ak_cf53683cf38309fc','2023-11-13 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$/KYfrkKqmVabH9pNn2R1kxdl1LdexrGJYVJ468C/EE8DCfiiCDm42','admin','ak_333fd3735826af6a','2023-12-10 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$HDq4kddwwdB9y3Dq/ZLDqqj26zJehGhk6jS56d1dzNIGEqilTT2Ij','user','ak_3795ef69f667c779','2023-04-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$C6BiQoICG113TY7CNnugyn3dAoTKHc3i6Y/3SB.AkVVMDM5JoE9vU','user','ak_f6584c6deaaeba3d','2023-05-20 10:22:00',NULL);

