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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$He3U8drWPP9U0.xca/lHBIuc1tVzbP7.KKxwijE9Y2xCnWZ/D3CXd','user','ak_7fd5f90766ec5828','2023-06-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$arD4Rze3VO83uEvNy/MONIx6wYrVLOH90cfUgiBZAOVMkEmBcVXLK','user','ak_71c3ac01c0b1a981','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$TTZX/tV4lBx7DpwpJEbgWAC5/AUGgZHuCfy/bm/9kKIbqGMQIXLye','user','ak_08e18bb6f0da7d8c','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$I6KnyUQU/etJSJY.nXdLtvuP0hkSjWnexB7u725EftdMLI6EsjXDy','user','ak_73110245f56972e9','2023-02-12 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$ZCW7hqAMLDSJ70w7PQCHr1LPkvfRSTj2UDaHHzStxHXzTPeqje80x','user','ak_650920aa610a6940','2023-01-11 10:22:00',NULL);

