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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$9lUYOr8ZhY7MvyApnUANCNE71Xn56L6mYKWHfdb8ISn7G1hca93Bf','admin','ak_8f514b84a1d93863','2023-09-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cJp1xxxQkuvSjYrqkWtBMZBxG8lctRmqWvYmG1N1tefaDLZJSFRFn','user','ak_f90bff0691c43f0e','2023-10-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$f0cMtlwxp.zIYVGnbgdbUihal1Hw.ilxJLQN7b7pqHRTHCGLgCjp4','user','ak_7d10c131abf8bf43','2023-07-23 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$dZaHBm34tefjpzbwaJEVS8BR26y3O/XMSNRQrwZypEKr1UbzF1PAn','user','ak_8b85d960d8b7b829','2023-06-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$YlsBvSt2xY/7XSN3/upptTtLGeL7NkU9dHRVUYaIEXxrYLZ1SbcMf','user','ak_08c0bb3e641af79e','2023-12-17 10:14:00',NULL);

