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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$YsM.603u/eW1Htmq64WWZGil77ruioHW7Ic4KWHt0.O8t.R4onxbn','admin','ak_54887f9d06a64c25','2023-08-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$IfyYhfxy3hDNc8K5VvihXdb1y1N1j1URqaldeBRBonvy9M2Cc3oo6','user','ak_c9ee9a1287fc08dc','2023-11-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$WYt.BUx4p9X/KYzXzMpsRa496vunVfips4XLfjmVVJpQM1L9xwS3R','user','ak_176b790b522303ed','2023-10-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$QOF7eum.BXJ1xlrIhfLnv1ATZgv6mqST7TeMayJTjbgFvwu60vjiq','user','ak_cee4266eb4679ffe','2023-12-02 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$HknYQvaNB5T4oeqlRjz8EnE87X4J.6cXjxUESWe7HaGZzyzuceDoT','user','ak_fdcb6d2266265769','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$AbKiwme3RmqcoDUZm0f5G00pFEnHhkLNqpOrhQTnZXRQp8JAVIR/b','admin','ak_dc2a4953351282b4','2023-08-16 10:12: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=12872;

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


