-- Host: db-master-6.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$MK1yZqiWHx4fkWQ57fb8ZTvQewuVFdaFmsv7pOS4AeVJmKU0tBj2X','user','ak_f6edbe799a707bb7','2023-04-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$L/LQe/l9TiP9zQEAckwswwqvCoNyPNg4/HyTlL/g8oWt0wtZFoCnl','user','ak_c56a4eb0615ed465','2023-03-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$14RKBDvKZT.6sN6fRoTDzfqcdb6Ynju60o6SnkObpwmAED9cOHPvt','user','ak_8c44abaaa9da88e3','2023-09-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$roITqajhDrE04H/aO5Qg/6J5xdqcEe8keShWEwsMSCznEROV4oVH7','admin','ak_470b915b08c05ec7','2023-05-10 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$MW2Idv8Ovw3c19iWMJ3VdjWw/3cIx.vB/a47ZCaO0XyjqagOt.8Rh','user','ak_f4bdf9278cbe3603','2023-12-18 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$/kn/eomECPIS9cvvDPQoNYEckl2xuJPtLun4Mi8F52skr99vcDNBQ','user','ak_8fa00d1a29597ef7','2023-04-01 10:08:00',NULL);

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

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

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


