-- Host: db-master-6.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=37130;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$vUQApZBpNPhXxBmr42AAvtOoqaZcAsTB4s.drJX4EeF9Jro60UvhZ','user','ak_81510e9ff2a667b1','2023-08-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$G4/IEN7.qA5Fz8aV0ancjZxB2DGVBdQS6eX7yhnJI3qJHbGGa56Gu','admin','ak_d33236ce82548e79','2023-08-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$ZLPhW5ea33PILyxJiR33VCCTiA7wehapOkaipwU2Bi61iJG6PqGh.','user','ak_61d4e6ddb01c8a85','2023-06-09 10:15:00',NULL);

