-- Host: db-master-6.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$OA2LGzJlZhRUB7cfsK8CfFFpTFT57ksXxay5ia.hDFCu3DDVgX/x5','admin','ak_41381c3aa2158c31','2023-07-21 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$bHgzRQAdqOMK9WHoKMW1JdyXb/RWHaBbcYi.1/QqUJJpBg/1aVLRi','admin','ak_ced24eb7f8cfa75a','2023-07-22 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$5YTpskQ55RkscqX/5LEb8Gt4JTO9HWBJuSCQ06B8TTuwHsJHC8gh4','user','ak_d7370c6755387d97','2023-08-26 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$vjDYY9HNVGef4fiIYWtuqtCcSvHr0gDtaB3VpgDl7Q9a6b91jjG0G','user','ak_69b5086f81c4e500','2023-03-14 10:18:00',NULL);

