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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$jExGGJ4SyGt/isSPStuVFwjFolXC0at13qSjbzNwVzxG6HPPvUMU/','admin','ak_e9366df86bd6b1ef','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$J6UmiERGdZPJtNwx2zbZSO4OEi3rpvb9s/7674EQwHKdV.dpFSw8N','user','ak_d9b02daf50f8fe6d','2023-09-13 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$KAj9FucywbVJqWwP28yA9prw6PWS86O0nDmTCyfj..9mvvqUpvgqy','admin','ak_f1ae6121045a0046','2023-03-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$aevaPtcDo0YrqbBQWYHEijz1jvCyMxAwYd6he/0SsyNPxemK/AMKH','user','ak_a01bbbca5292a954','2023-03-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$VfPOMSkLAUn86Hs2CX4MIOkugOPMqw2R/bt2y1An/ZC8OJs0PbNwx','admin','ak_f14791795a6672d0','2023-05-24 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$79Io8hXqLxD1gTz9qKCjfyFk/Tapa2Ixpl6pHQ5lBzt.F4Ps7kqoR','user','ak_0326c3604d4601c2','2023-02-04 10:03:00',NULL);

