-- Host: db-master-0.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=17736;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ofxzCl19Ff3/8l.DV1EeW527ghB4LN6vcjYyHR0p6cXrHrHXXJSSM','user','ak_7472246be7eb249a','2023-02-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$28lj3gE3iQ6ke.n7VGPHVWa5uUVxRg3zSJC2aW8Jm73ey.MOAtCJq','user','ak_186869ac7f8c8d7e','2023-11-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ZIX1skRnjes0v2g/nnQRgLg.FOFXlhftGb/HCngoxvyWk/owVyVag','admin','ak_6e4f47a9d2437eae','2023-08-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$1jIVnxDFPgVSNxiiSACGKIrZ9IQPUSJyj/6iO4Ba9zLTDE.8FBQ.a','admin','ak_2faa2078a47ad95f','2023-02-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$A/cRaCo4N./yi4ygo2ogHs3ctgA9Vby3/v6Y2hS9FqQDiL1D7GCqt','user','ak_75aa3f4ee203b2e7','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$klCkN5kcq6KD2Tl5agfGARO6UvL6KW6VVPomIteFbwpk9U5yCy0gZ','user','ak_e4e7ef12f1a3b988','2023-11-10 10:23:00',NULL);

