-- Host: db-master-8.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$FGUITpRDmb/sVbIVYoQuwzC3IyWFLQF.dRSvVp1DDg7ZrvjHDHVVL','admin','ak_972bdf12f3950079','2023-11-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$3fXjyHhlQIbIA9U2Dki366ovtuqJgPFqlsWV/VCFcZDet1SsYgXkc','user','ak_bea0dcde5cffe879','2023-09-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$e0m8G5KVYk4aMift2ieiD3G/TbI4VQEo/V43ftbA2rR1YYOURUjq.','admin','ak_d845558a9ff8e0e2','2023-08-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$h3F43DDM7yhMMqXt2SPvnNVEdHzvlNAzqQZQzcuzDV/sd3cGK/vN2','user','ak_6e842f07775d5575','2023-12-20 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$TRDB1y6wF/4MZpcRXP6xSscF7yz9OjsNRU.GL/hDkmYlXViSYBUMU','user','ak_730a23b05110ff7b','2023-02-13 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$gnUia8.pcAe72nMF2vA4MC4fw65eXPA8nUpsUavXD2kJsZDO8JnQw','user','ak_fab6338487e0505b','2023-02-06 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$x0c2gY2yJVI8SMjG1gKFpSq37CPY7m66EhKJpDM5IBJ0kYd5JxF8T','admin','ak_758013242b0ec135','2023-02-12 10:10:00',NULL);

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

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


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

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


