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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$6SwWSjjCM7Krm/kSBoOjqlMqEhTQyBVHMDyYRpnPjTsyKInigcaky','user','ak_f33be405b4400999','2023-01-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$CnXPvlT79F3cs2C/4G50RNHm3OfdvFLI5xSj4.SGLy2JZmTh5471Z','user','ak_b7d4c6254821498b','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$obiaAZ8SGpYRAnOYWkjhUPm9vwt0GS1qOpZlP0OLbqpeTvay8FUel','admin','ak_3802ee252eb1dd3c','2023-07-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$qYU5BDuOsJ.WHCU2mxRtG1EhtKfIfK7TA3LiEkOqCRXXyauLlsAhR','user','ak_a9d0c9a306acbdb1','2023-12-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$2d3JoVC1XB0wp9R5zcPj6seBsgm7J6QaxkkX8zXQxneq01HZjbU38','user','ak_e34cc3e0d9e4eb2c','2023-09-09 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$N6XjD18OIVELFzBU9gj5olRJPpwRQhbX2BW7PLX5Ji.yS158Z/iOo','user','ak_cca1e94ea059f6c8','2023-05-16 10:13: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=1976;

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


