-- Host: db-master-5.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=12114;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=35075;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$C6RHuMAW0DPxXbyTdfs/93S0Bbxb9VQBtSUK8H69FlnZqWG/dSrb2','user','ak_3cb7cc199dcae0be','2023-05-21 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$SWg55QdMT5ckSMseRL8d4FwaVQrZllKZ8Nd1bSsLVNRQ8HRrS8oBD','admin','ak_6887bdffdacfd1dc','2023-02-11 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$jAv62/j53T67ZaidJHrUAc/0HcszJjLQ4ydk/BHRc.UPYbglVwgfX','user','ak_ceeb84402f4ef744','2023-03-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$rtX59YR3IoW06w63tO.BXwIhHESfC0t8BPOWwJusXvqAFOhwfeBeq','admin','ak_cccef80e9dc8f97a','2023-11-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$vim55a0WrFvHjHTKnwZrZO/zOMRrt.BWd8DKV9.ckhB.9GqgA2eTr','user','ak_01f53fe40c8540f3','2023-02-24 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$hcMuWTju7QU5NQoymjbIIj2wGnoT00hshF9JeyUzjP.8dGAkEoNO9','user','ak_e4af18b7ad14cc0a','2023-02-05 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$wEMgiQevUWt8eqXn27AFuikGbVFzAKB17tHG86e78iSgCANtlao2W','user','ak_b961070fc4a63f1f','2023-01-07 10:17:00',NULL);

