-- Host: db-master-9.internal    Database: production_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=3360;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$tL8KXCEuXEwk23gfbvr2v3YzcQdp38tbDOg0djDZyHUojLHkYohJk','user','ak_63c9cce2c2766d92','2023-09-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$gIWELdTHrUgps13APGZ95xwxO5SilqZmuZtu.hqTBbopz4N/oSTO4','user','ak_7e3dae8792f5a676','2023-10-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$Sx4uzP3JyLFC/mINvKFbRCQJZsTVoo4xVA6xS9rG0DwfCI5rp2Tv8','admin','ak_2446febb921b39bb','2023-01-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$xIKnzGVf1Asm4xGwY9sqwjqtdnOj20M1XS6AGDSY3sP5H16YM9U7h','admin','ak_ed47e7d71c80fecf','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$XUaa2spn112BUhrnDrVMqyn70T/bMxuUGOVIvQ0IP8eB5H06Y1ixk','admin','ak_002baa7598308be7','2023-12-09 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$HR/vT1/egL7Eh1sXprDDwRDHI4XicFNHIR0.OO7vUH2AiOGBqwEkh','admin','ak_f53680d11f4542ac','2023-09-16 10:02: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=42771;

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

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


