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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$XWjW.8JMGbZ3HgYiDmnj7h7i/7cOGwG5YsIbCeVvj2iWHwxH48cX9','user','ak_f5e2fd2fcc88623a','2023-12-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$6NK8igAmInxAapgFt91n/K6Fb4vkUOf7zrEWKz/RJ53EOs.eRFVyi','user','ak_30d135fde80501bc','2023-05-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$b2I.K.oDPm04uVtP7/vIfKSu0tjHQX112V7cu4rhY5s0HzL/hAQL.','user','ak_3ccd1a4a59e22b6e','2023-03-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$4KaSSUgbYgoPrUkLC7oizo7dMPXxvO05uOT6lBXfoVaNfERSeBi0c','user','ak_fe7b75ec5f7cd121','2023-09-05 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$0smO9hZY9/HaKYgXHILRDDJGGs72soUPzNxCUD9AMXN6eZ8JGhPg1','user','ak_587ea1e1916660a3','2023-06-08 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$xBDj6CAGyjfYqA1PPyBQlgbmcrTXVOPrrCpF/ClJ7978Yz55m7vPo','admin','ak_209eb20c960c14ac','2023-12-22 10:11:00',NULL);

