-- Host: db-master-6.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=35554;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Q893MibEp8mnwzFnMCK9fS6VGR8lCtL5GSPgBGrLwDfPTtw0WR2s1','admin','ak_b3fff27219297b26','2023-03-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$JBmMQieOQ/QApzAHFngK5Aev4i3S5p1768ZKVtc8/l2Ggugdr3Bau','admin','ak_b74af2b2c565fd38','2023-03-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$YL/SnL7cs43VS/Gb94UBDDXe6BfTDKlttKFIhCutdzOm7ei4SPryj','user','ak_b2d523c8f7967bfb','2023-11-19 10:05:00',NULL);

