-- Host: db-master-3.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=14333;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$m4zwc70gG7s66RxFsPNLfQNkE8/KprlVJLJZl1WRFtH.dmrwIan1k','user','ak_e1dbda371666ae23','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$y8HKoHm29q5Kx9UExtMABAQvi31Zwlrbd/8laeXD7CIkit2VSPfC5','user','ak_5539e8581cdc3a6e','2023-01-11 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$T2P85eFDSDxEUSw.ILaKB.aA6Tuh5jmJaWnlHdhVteOpu1InsVpdC','user','ak_cb4977654816e1bb','2023-02-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$53Upyjin2pcFPU9315FnU1Z5xTv2rOAC3Up1Z3eHjsK/Q8CxYGhFm','user','ak_f0e6776015090d8d','2023-08-15 10:03:00',NULL);

