-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$0cIsPnF2jucSvovBlMZQubofWiYPqHyoNZeSNDWovWZQDiF7uR9iW','admin','ak_b9036acf943b7630','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$zIQuZR.gDwCn/OLKn38.VRRvAL2vjc4sajwdnqgmyjX4T0xrtc5lJ','user','ak_3afafcc451752d92','2023-12-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$w5eswBtWekh7Q6yT8fh5KbOoOHQblLbB69keKwuRtcd8tyZIpHdH0','user','ak_66186e364b0a1925','2023-09-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$k/hsmKbrAM.3EK43AY3irKKXzagflm5urblrpZfyZhTLDq7YUWvzP','admin','ak_1f4e1ff9c6eafd25','2023-06-05 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$UuL9hC1FHFi7mcCwJELZZjfIj6j7.4gn71A9QR4xsnmcEZ0JRvL55','user','ak_677b53fe6fcd0275','2023-09-18 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$47LewKqfsHcen3mMbsjrLJyTa8/dwe5onswQ8nIhcnSnSdjy5C7la','user','ak_e240bb548c5bf193','2023-06-20 10:20:00',NULL);

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

--
-- Dumping data for table `orders`
--


