-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$buSpv7rOMngVZDEDjeBq7FBIq6Azib0JlqmMpSAbBwmVIhIOHsaCL','user','ak_5b21ed20ab1cde1b','2023-02-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$MLQznQVY/TQoLI2kzS4OY3BzKgObA/hJ8airo0CrUlwaBOonHxvy2','user','ak_e7f3da5f3f3915ae','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$MQR00b5ivVLhcr72EhQrPMdkS.nzCat1lvTQ7GpSfreLG.gqcpKDE','admin','ak_4daf307effdfe913','2023-03-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$afWfH5FMoqOkqLFyYFhaSpRteYIkSZ88ltx/0xpRduTy0p6pVfRc4','user','ak_a9aabdb4b4edf856','2023-05-09 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$wWv0Onfa/WktWQavXtshX8lIdn3u5FVChDZTqEh2t5LArbnsPMwIf','user','ak_6de3d4ee07136b39','2023-12-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$01TXQAnkstQc4rjYwHw7sk1MeJ4Kt/iSO.UKGmxemECArGsBpWsla','user','ak_8c2fd7282cc533b8','2023-03-12 10:11:00',NULL);

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

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


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

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


