-- Host: db-master-5.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=43780;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xmQP.4XwovESDaJxTJm.YJctIizXxGKcq7EOlE2OrNGxug6z/ZCNX','user','ak_f119fded3d2a8e85','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$y7Hfusq/2zEag.NUpLA4LI2SbH8ntJwP8xmM8XJyMWHQ/3CwTVjZ4','admin','ak_7c8e92aa883b07bb','2023-01-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$mWKZngpQFp1d3XPM1XERYwcdjJGQVMmUmLOGOArwuNWPGPbuj2ndG','user','ak_e446cd7d9834b9f6','2023-08-03 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$1Z6BkWa8ymC.OY.QKTy7yLbgCt6vLlxxyohWcgXzWtbTKwJ7hZ0vv','user','ak_fd83663d5c054553','2023-05-12 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$kG5Ry.Am8ZfGJui0AILyKBnFAoz9ZVZRn.Cn89YiwUfD57Ft.jXiB','admin','ak_b969bfd5d4cb7fc6','2023-05-04 10:15:00',NULL);

