-- Host: db-master-5.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=25038;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$8adEUm2oJqH/B9nzd8UW7YTO2sa/Q6LuM2QYoUhXvImDaGyo/ezCd','user','ak_865b0066b319bd5b','2023-09-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$coE/GJptm04Yv3Q3rTITghVPIIcqmK75LfRqsh9vnzwj8A.SZyKN6','admin','ak_82e0bcd49fd2b3bd','2023-01-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$UTgDm/rnfXMxmRwR.DXZ.nBDkdlz4C7j4fQSks5kw/lXS/qdtwSfN','user','ak_afa6a455572fe081','2023-04-11 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$G3D6BdJ.inEiFamXAXO1NC26Jlu8q3xtpveZRapf196COGUXn3xL9','user','ak_773b67e9069f1f27','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$jMUiXjyB8MgnVOXolpALfQkob5MfE0FkVXjULvZWoH8ItXr4gGKAQ','user','ak_f4f93d70ab255eb8','2023-11-24 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$J6QsLaOo7jVBPjPw2CMxq/O9me1bMGhoyTyoY.ONCu0GVTe6pPs4q','user','ak_d135b8474c213c6a','2023-09-08 10:05:00',NULL);

