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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$.LmGyTAejGb7Jc6lZdnzj0vMQhEDIzwA4GGCntFZcy0lA4TYb7Jv7','user','ak_e59365629083d935','2023-01-22 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/x7Pz1wxdiloVl8KFwVUXdGv7hMQW2LMYveSq.4lzQzw8TH89aq8w','user','ak_cccd30980167d40d','2023-06-17 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$GWa5rl.jHML1GyDjzJW6HUvoUdXs5NTl0VocpFPbSy1hgNs6H.hvq','user','ak_d4a8ad3f96a4d007','2023-01-06 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2qRBaJ/DO4jkOQkJgBKAskCtzwkw81lnmZG2Vy/.ncVNNGuwAY.Y3','admin','ak_e134ba771a964435','2023-09-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$l5qwwBZvjuOEBUM4F35ZMAUsdhPSSzjZLo1zpcFEjJi0mJbOle5/5','user','ak_f950455c6db68b8a','2023-01-05 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$/IpVx40HPLnDo.I2NzH4OboJLuXW3TyqIV2tzL5Hq1KJcHIQvlDm/','user','ak_32df767fee87199d','2023-12-12 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$lgNENh2nghapgUhLYztIEveEkfhgoiQ.lPbgdWbud.Y5P69DIuX.j','admin','ak_32809e8bf4c96887','2023-04-06 10:23:00',NULL);

