-- Host: db-master-2.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=50390;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$VOT1OofSW7nILQd6SZD04LnRuzVjlDEH33oXWeC2TuKF2JVjPr6Ah','user','ak_f1fad7fc8ea9b417','2023-11-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$abQ6hZ9ErfVUUrhEd8LaQADqUwhUwTHsrR38mcEQ5WwXx7CMjGKsv','user','ak_2230bf92dc8b381f','2023-05-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$eafj1v96NV.8ZptWIOW72duBCtYiNOfrZ9D93z0mCSS6e4GCtO7qD','user','ak_003c166f3eac69a0','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$2j/IfndJidBrvDlT/5ehbUKZxAB0KX9DyXcmCm2uK4NhR6pNW.tXU','admin','ak_b25655ec83c7f324','2023-07-05 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$lAOTKCsIum4wtKaxmkFT4Xdxtgisw5FkGPIiDI8kMW/mlWlEIgQJO','user','ak_4a480c45fd7491c6','2023-12-20 10:18: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=39664;

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


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

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


