-- Host: db-master-9.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=41554;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$3sAGp2axfcFOuxhRMIuQZZo0y88MlAnzDMfaI7DClUJdjNFpXnFJA','admin','ak_a246bf30eaabc3c3','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$hVtA9VAA5erALGa/JavRv6ZFt8K0jGvacP3muExgHXSlN6TRkN5Z0','user','ak_6f516dbe48bb53d3','2023-06-21 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$SL9CAQTz19J5lpIRRHeYaKceVFJ9/.kqOT/kis.kyH9WT8Erpdz6K','admin','ak_7e498759238a410c','2023-11-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$wSrSSuPsmeLKyqcJG3rI2hW1whePqHFcRQznzOOXfa4/pFyNt6rLC','admin','ak_304a43cd54bb380b','2023-07-18 10:10: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=36000;

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


