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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$JZLCkvlrSx.p95L2QyEoWK.NpSkSgK6QpByKaxPMveEh88ZSNFOIJ','user','ak_8a4a5c7252420080','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$IMXcRMs9K07PyPOPYOmrjswvifTZdNDs71LpjDtba5H34Z78SDWU7','user','ak_03bb8babe62ba37b','2023-11-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$i75/dP1oh9zH7ssv7lUFNa5pZJqG.JJom6kb449gYX/w3Ja4H4FWR','user','ak_e90d7ac05d11888d','2023-06-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$eLAzkvQyx2Xm6OKjPIpLudFW/aPHyNxlX8s3NcU1CVq6HhS02nbgr','user','ak_cd035d26d66ac7fb','2023-08-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$X3EPGy.9ja06Sp56IAoF8zSsjLUUY1Wbs4oLyxWU6hmxs9AFY/JgS','user','ak_01d11b82dfe8f76e','2023-08-08 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$ls7tUl0leXS0RzfX/ZPbzKF3mQ2KX3MBQnUq5l90t7EueFyx/8bCL','user','ak_1049ac2f31b3ae92','2023-09-18 10:03:00',NULL);

