-- Host: db-master-3.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=26526;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$dbEmJ29EVzEsQeNuRiQyVi1kDYLdMXCPzgSg3mOd/Htwwxhr6kAkx','user','ak_84de43f8b82ebcc7','2023-11-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$c2wj74uZ5qdgp4IsXIQ8UT8A49AhwZdjjZc2DISja.XAJtM3XwIzF','user','ak_c2eb5edbdfe51c50','2023-09-26 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$DDx.PR3YRQewCHX4BlKhwF/My70oGOAMvOA1gE.ZzmUKMYCoK7XHT','user','ak_54eeba7bc190219b','2023-06-19 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$VCasUq4ptDjVNQ7DL.bNrTg8AV6HKpyN8yrFVhD3aOMhfESIqRHXf','user','ak_b55fe26775f35934','2023-04-04 10:18:00',NULL);

