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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$QNFDTVey0FyhNnS6vx1/54vb5knG0kM42WYHazfnT1Ahk5xH.31Al','admin','ak_7080a033097d2c9c','2023-09-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Fnt/RyoUMTRbh5ym/b0XfeI8zFXt6pbPuUkBJXIa1PXAqWpkk7u8f','user','ak_720c0509a309ac18','2023-07-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Ih8pCWAhpDC0lPG6OjvtVGJKFsTVRcZzmIurAmeAdWfhmwRw37p55','user','ak_1de6cd4c1aa79ed8','2023-05-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$lo9LmtHF/degUs1FvvadQEuKHh92gIUUr7vhQ1MCWJK0E4tikYSNA','admin','ak_6a6aa03c1b61a63b','2023-04-17 10:14:00',NULL);

