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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$TOQ583vR4dqPRMVddwjwuKrsWgN26X45H8gg0m.Cw8HOdcAiPMk3e','user','ak_b23a8569aee2d9b5','2023-02-28 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$DOpuCrZKQUbtRXYEjTUdYHwlGzUrojutEhmvtBiHjZ3cXjkn6yqmg','admin','ak_dc903ac6637e23f6','2023-03-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$dLICXBNbFr/ckPE1RavbmzqHfrOtGAGXHrdPg8KKHSpYtY18mkzQU','user','ak_80b8dd034753822f','2023-08-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$O11dhtymrxIwnRKLvLL65ZLyN3q4FRSqHyW1a5KurHUbvI5Z57Hpk','admin','ak_04383e68a59afecc','2023-10-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$dpc0i8jy2.SnvuToBPStE0yw.lRfmtDpvM94.IeS1MG16cmazX259','user','ak_167da47eaa64c185','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$wPRhPodI//tywxuRayDGby3Q3N/bGmrRYbvZ4Ah/N2HMU4K5aQIRt','user','ak_91671640f8ed0b61','2023-10-17 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$IRCAWkSPdnfbpk/GuK44wVWreE825m1vMu0CY1nnTE0ahgtGiEckp','user','ak_fc4843b73421344b','2023-06-10 10:20:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=48242;

--
-- Dumping data for table `audit_log`
--


