-- Host: db-master-5.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=19244;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$0DCDeJRMgwCVPXYsw5c9sAxdEYKUreJXgvPrkVyuFMNG92iaAz04A','user','ak_26a9d1d17da5ad5d','2023-08-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$ZD405vxWSz5fK6vDCHnv8fbEMAXxyFU7qLJD1adBZtmrukBdbFOGa','user','ak_7906f87c8aad7e44','2023-08-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$viR1JVwOo.TZfTe4nsjnqkcpI284D9cPNj.E6/qitKp28QyLAISIm','user','ak_c1c59687e2fa6dae','2023-05-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$LK9K0MybzkxZXmGfRdpDMF64qIXSvXiACtrGc.KQ8KpIwGoLXwusT','user','ak_b2945ad7f79ae848','2023-08-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$0RZXjnHdS/UFLpclhf5i9Cf.mR7VE1qkcCWSbjU69sDwp6Og0QtUR','user','ak_47ed9ea8196dcaa9','2023-11-10 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$JwvYoR50geElf.EOPEBxOHUn/7U8GQIZoUwm9O3G88xDAGs5eGzKA','user','ak_11f57a0671b3cfdc','2023-04-13 10:18:00',NULL);

