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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$8sSRr4572cEK5Nxjia3R39jaRCp25bZ/NSIPIxT9ZEGLAkon.TyLl','user','ak_c73ee77f86b56270','2023-09-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$uMa78Ghu4.kCa2hCjeEi4Io2TVs0m9UYAvjloGaKk9l6//prU2D.T','user','ak_eb1ae4c744f6dc6e','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$lq9wvfNS1r9k0ikS5VSrnbAxkFN4CNyWJIsM9lywQ/756UkULzDiE','user','ak_839033e543ab97ca','2023-09-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$6Lhbfz/pvdTKN9z0DQ9NfPhGdmtn40VeZXTQxerOPcXMecEgiCWu2','user','ak_cc5c165bf2ad63bc','2023-04-04 10:08:00',NULL);

