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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$4S9jRpAV.t1bkyOHgVGpNP.cww2PrEE4zFXHp1LBHCdGRSPiKDDUR','user','ak_e2a10a1c450f7b04','2023-11-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Mei0TiDrE67FoN9FRavSNJyPbR.tirxkV4XJ/b6shfSHKxz1oNJUG','admin','ak_0ced1e08c8d15b75','2023-10-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Hmvf.Wn02VL341MThTiqYDR11qzEenEpFNtRoJdPiYGMish0B/DFu','user','ak_ed2c17b879d3f9b8','2023-02-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$QvSu6eR00eF7iL6FpPLreSv7JAQNETUuuaAHdNsHIyIfgNaZ4Z2ai','user','ak_6015229908fe6c53','2023-07-28 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$FQgEsos6HMca/IhDVO54u7vQuBo/yDxpe0kHAyPWz0iGLET4I9gt6','user','ak_aa6d371478d8a70c','2023-12-23 10:15:00',NULL);

