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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$D2F00FVx4yHm6ZIoz61/jWVhJDRmYJTfbZPUKna3UzEJFafqKOVfv','user','ak_2c37cb82d6bb5ed1','2023-09-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$N8/8Mo6XV6Usa1uOHAp3XA6cQ8RzY3akd6BEBINeE7MvGzHQOhD2i','admin','ak_7061a9fba698a0ff','2023-02-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$6WF7yctZem0yEorzDTBO6opeHYVTRrsM1mVmUNWmOcQc5enhB/Inq','user','ak_9e24060a1299a4f3','2023-03-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ek8dwLdKLIDhDljUYFFgerI.1bJhX3FgmJS.w1BZ8wAWyPjcRagpC','admin','ak_cf436429131ff50d','2023-12-06 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$b5ztorXetr37qWwwtEVeIhqPM1nUf9efc0j.FBhSAFJUQkanyVMTT','admin','ak_7f6ae29aa9873827','2023-08-18 10:00:00',NULL);

