-- Host: db-master-2.internal    Database: customers


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=33793;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$eQ1v0CQk82hLfO8FcAwVxb36Cqd0vzBYlShpelfmhKeJk8GwW4DLD','user','ak_e92ebd705cba7728','2023-03-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$5IEf5jTnqKGi/jSUn8cR.Iwf/5QHLeKBqj.EItQRHljcFWluNkrt0','user','ak_6f295fc8c86bcdea','2023-03-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$lmirEpGp1ASjRlrHn/3r54aNAoQlRU9hmJ1lgivdQBvY6lfjhCyuk','user','ak_b97875ab675a13cb','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$rwGucfsHyeSy73qEv/duSsosjuXmjmtkcs55jgSrWQvpHdm6r.wOf','admin','ak_da74193916e31be7','2023-01-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$rOCdISeWWmM0w/LV1nSVdhhyjG3HBqSoF.eAmILb9CymO.OV16Cj7','admin','ak_445b4c8a3d6e15e8','2023-01-11 10:04:00',NULL);

