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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$24XoVtgCLuzCC98qB7tFfCXzA8EiYHQp0nnAVbWB53L3fg6si5FrB','user','ak_c52555b6064b1f1f','2023-07-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$CkOmg6WpWE3QxO.1.hxM66YG1hg0O37atZk1jHXDNAVki5QgKy64s','admin','ak_133d0b3c92d3ccc0','2023-10-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$OcrBmYnghkZZxmBy04U8llmHbRxdw4OM3wNTqk2gHHeA3miEz20vW','admin','ak_5e337786c658cd9a','2023-10-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$1TNw7PHPG5IM/SmrsACcWuQUGMp6vOmFf4uYCNCc0bQHwGo9rl3xY','user','ak_cb9e4ccfd48f19d8','2023-03-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$46u14j0diKbVk1U/2SlEGfv59xQ0e9d3yqwlPsLAS8cnluXpUfWo9','user','ak_5fb1c7a29a696816','2023-03-11 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$VU997azhNMD0cjX2NE372Ob12P38kWkpqoCghZYE2XKbZ5w9EIR7j','user','ak_2121ef3d7e370f68','2023-05-07 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$VlRKGjvo9SYhp.ajs68a.YQdeqyu.G/rcyI3tSImq9iE5TZcfh0.M','user','ak_83fcb50876d596c2','2023-06-04 10:17: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=16028;

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


