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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$529Z2R6nRt9oF8tAK0lxWQCgBdprPmy2vKFN9WmDPS2fP1HfsfwC7','user','ak_898de6dfe9ebae7d','2023-03-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$rSAsi9vI/3ILw1RXlTk8CbSW.OWw7BFpJfz.hYb/6aZCtEJv4WpaT','user','ak_f50352a5117a0a88','2023-03-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Q5rwEljBmd3gQOTffLYCemfZlO4nJdbyX0G/yshdn85zIHbcxUGa6','user','ak_397868b4abaed842','2023-04-10 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ZNTQ5euVsuvbuePnwVBwmi8.hRKgqNzIRx2fWzFuGyxbR.KFZAs5v','admin','ak_21d38983eb99221a','2023-02-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$GUMRvW9lcr90CL3cwyIvXTC/F5qRD36xqMjCivdiqbM4vhQzFskCS','admin','ak_65d0557164491177','2023-08-01 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$qWva1jpVT4GKaCv/xl3Q7nPMOMXbDNxBidkifyzGJmFlNdH6czqgQ','user','ak_194d9909661d714e','2023-05-18 10:00:00',NULL);

