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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$DtWJugAMNGDS.1lSOab7rOP2EzMfvzMREbw1j.ml2gWzbtyzoUaGv','user','ak_4f46c5b8553eb6df','2023-12-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$myjiLs.jMBOrv.Cyb4qccsFv.rX4LOqUQqh4jqTyvxcTIjiH.Zyzx','user','ak_020cad7c5d5b77ee','2023-09-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$vD/585O3NFhtPrp.RVMVGlJn3Jb0vrrNGIVy5p3gD30XVIBvF0YPZ','user','ak_96bea92a56228ede','2023-11-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$lZVk2Ik1sGbNlZpFe6PwZJSiCKwneVqn5cLeKpfSKhkIvriY30Jht','user','ak_cd35ea934ddbfd97','2023-10-12 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$OhI0PqiSF9Kb4SW5FpXTHUC71Is/B5cBuqnQh.rbnWdVqkBcfrS92','admin','ak_a5ff58d225dd8250','2023-12-16 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$kglY.iA7rj7I1LGEe54Lg4LvaJG1131gZoYokoVFUMpdjcQjVF1kJ','admin','ak_61e9317cd36d7b9a','2023-07-07 10:22:00',NULL);

