-- Host: db-master-5.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=50349;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$/akgTkd/gsbF7sAK6uM48X5aUE/nyk1P9GS2yAt1oghbQYsWnSDSB','admin','ak_2c261a1f8a8e0a1f','2023-11-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$jGFhoLD31jknxRAZ6Ygb8TT5ViqUq14b1a7bk/bSQCwXl6jzSTop0','admin','ak_7611778484191a58','2023-11-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$1QGJOKyFFP5gqsuAlwd2rYWs3DaysP7SY10XT3r3rmsjiPlwIESMB','user','ak_541d5e676453d069','2023-09-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$0QAYeO4j9m1mwIOkKIQ2Hxi3HknT8rOs/nXvkPakTWYui0dPsxnom','user','ak_a1ec54cc3c2996e7','2023-04-16 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$yH1dOhhkKijcZy1wt02YU3i1iZ697OLa.lPUF//xylhxsv8YKUzQe','user','ak_9d73511a67c4677e','2023-03-05 10:10:00',NULL);

