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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$pR/fdGnc5CvcEXX6G5qz8A8HKKNDRo.eg0Hk2bvLUIUqD8.4PHw/w','user','ak_57bedbfadf2c84d9','2023-08-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$H3VNYniY2483gIHOLxiN7b4fegbGEz5xderG0wPWLwafVwsiocgyU','user','ak_be8bbaae74d85f16','2023-04-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$uAYzEq/WVTPjvuBXxShLpfpoHaRyuFWvPArcpnE4yu6F3T09L40QW','user','ak_32b3f3b87036cc54','2023-03-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$W38YiOGU.HqfdJrtIaJM2g0CDUh8mCcuvfPM.0hjmqiRXsrsu47Tb','admin','ak_ec08fd4d07aec5bb','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$gh0TJT0eEupWfL3U6ZdbYV/aNADC0j6ejURF0FF2CHuzdOGpyUQOH','admin','ak_5f73f47b4e0c8313','2023-06-21 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$l5GAqFlywqptrUQFS6EfLTY53wzuboR3H658SJcVit3FI8Og4HPFz','admin','ak_eeb08f3cb14a7f3f','2023-06-14 10:10:00',NULL);

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

--
-- Dumping data for table `orders`
--


