-- Host: db-master-1.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=16628;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$3B4YHTI3K2nZwH2xJsqaxGZUPqc0a/Moa8V7DWlLVszvF5H2HGjbd','user','ak_8898fe04de0a1347','2023-12-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$89sKDrIRKwlbiFRqpr4iGK/LdolViaavjcbDxWYFTdyZvM3XrxQH6','admin','ak_2fbeee3ee7fea5b1','2023-06-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$oEvJ6.xSJ5mC2lPNnfJX283HiUK.pifuz9n9WAd4JOgY7IHCjEJeR','admin','ak_15fb6d9c718d9fbb','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$aiocRYaeY2wcIFjiKOZfA25c1SdwWEgYXnHTFkOOvNQBF7e4.cqSB','user','ak_329b5923a3f28391','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$ZP0uyj5N5MJRcTR9u0xcPmSlfuIV/ygQ0mPXgBjyS4uiLJqKs/Nm9','admin','ak_21079aaa1dabf14c','2023-08-21 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$KFjhWriYy/Y4n97JZNZ1jgrSJCThcgSl1bPpT5lmqz2vvrxJX3tHu','admin','ak_1b5db30606488caf','2023-05-12 10:03:00',NULL);

