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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$PRwyIXg1om6g8mAfw/I6qhnJThQuCDmJDT1gv/eQG/eWjK3IWn72K','admin','ak_b90dde743ef3b970','2023-06-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$p1eRYFSG14R4pE4u.ku3HUu/RolCOfCItlLeYnZ0wLC3wo6BGiZBW','user','ak_a1687f20b23a5031','2023-11-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$oSenYhzjeUFgVHrSUGQojW4boAq1yXlorHm7RioHG23UU2t7UVZ7H','user','ak_862127d565bdc33c','2023-02-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$/TFZHU2RTNKTuZFI/vjMJVBrmWTWA9sXIn1zqwKgpveGlg573CZ69','user','ak_4b47e08aefabb900','2023-10-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$w9X.NX77JDXRzx9FmPFlso6nHJjHNlHFHgNiz9qE.rAwXxhLHwGi1','admin','ak_d942ba7ff58746d3','2023-06-04 10:01:00',NULL);

