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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$ekbrFlW911gsr/1p73sr97kYgPNaTZpB21qOGLvVUFNB714TdoWuE','admin','ak_8d554daef33f399d','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$lASujY2nEyfPdbpil3kcRtWwKkjJqOViJwbguvUfdWqx6hHD/otVf','admin','ak_5967f005077852ea','2023-07-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$j5plva084Oz40Mx3wjdYMpLt/dKfsBmt27ccDORmgRl1.HkH4yCkM','user','ak_b187ba13c6ff96d7','2023-08-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$skht1B7tTPuCfPyK6/PZfyebAN7DobTJ/JQYcbLXXAS8a7AZmDedT','user','ak_3f62dbafc6ee2923','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Db1R3prxpb0zVPDHovz3kNvB1gCLx2rHosUV1WXwHrbxDbIM1tezJ','user','ak_7d1ec6929fa88221','2023-04-04 10:09:00',NULL);

