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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$dvHv8XJKMxgIG4CrjpIDvyL/EhRlmY.azlzl7rG7O5aYxiIMFYgOq','user','ak_fe595551f03bca2d','2023-04-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7uZxSEogwY7keqJJqQHWAE.VkkhjllYpKu9e7dQ1LrCmGm5mshNvk','user','ak_3ebdf903250d5ef5','2023-01-28 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$iZWOYU5ABXL9SayTJvliWMkBy8mvuA8NvBOY3xmqynGI7xfbZUCcy','user','ak_4aa663a0f14298ab','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$rTlEGE7wWfd1vfOUZNuO1vdSkqOUC83U4O3S4Cy/2DiTLLxZQgm1e','admin','ak_44dc6e104b61a886','2023-03-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$A/DLvKLv1WOfRkwbj2b.aKln19GMmsq5FxXfy3Aqsbs/Mm.DjfXKn','user','ak_1c7072a055b5d994','2023-12-22 10:15:00',NULL);

