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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$/HB0nl2s/TKt9/FnBxDhpR4G6J.YY80CQG2jEwoDans0UgV3sU5kG','admin','ak_6cfa3a809b5cc135','2023-10-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$IOHfflVq.Tue9vAL1VtrA3TvjwOHL8yeWJCexGjU7hVyXzNst0sHt','user','ak_d7ec376efd69328b','2023-11-20 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$QiI0JN44Ak9jXsFhdxTcZjCz5I305No8xO4N2Zmck7SEV//TvGdry','user','ak_8a6d742d3cb4b558','2023-03-09 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$sVHM93XA6hp0Zdk86tDpnlsvCN78tMQCqbEDWlh2kGzU2Gga8F6Rr','user','ak_1c7ac24ebc3e33c3','2023-01-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$0rQ9VUw3Ch4lFthcErqFMjW7t2JK9GgJmMLc0cv56rHr86mooI/0z','user','ak_05e66e4ace713bc4','2023-02-14 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$MRWAhlRLN6lQ1xQ//3lmE4su2kkgWtR3uHk21zUmUqQbt5YSbYMKg','admin','ak_a1337f092070279d','2023-03-24 10:19: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=19256;

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

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


