-- Host: db-master-8.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=21737;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.RyoJIY.W82csaesyd2mbEhM1p/ecFImnuv7pAUK93mU4XaL1JXrY','user','ak_1042b26924922a9f','2023-12-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$sBV2vCJndIhIFy1Qdrzz1bpLbkkVk3ZQoVx8urFBV4wLrS2zc2dCe','admin','ak_da40ab2f95b57586','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$R5TewcpjwyXpYw0CjI3TETF4/P8dlZ2z8o9J90yxt3BFJNsm3o1rZ','user','ak_89cb0809c905a7ad','2023-08-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$/E8uHFEp4utqiR.47gL0DHlKpKaiprRvLtd0S0FjY7sjO6x0X1zSz','admin','ak_140c6814f05a7ba9','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$vEJ5RqN13ita.GI1/9qgnrcvhnA1h6I3QECBWqF4rdc7ZhH81L/2H','admin','ak_4e776ba66143417e','2023-08-13 10:03: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=38788;

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


