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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$c77wWRgKoM0ksd4l/e03COh0IeooHegP2Z2ZuoMmtLiaqjpCLj5GC','admin','ak_455e28111bef9f0d','2023-04-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$9goQ5h/rmZswHYQyJw24ZG/hADxIhKCrOGAvXnMsZm74U0DIRi5c/','admin','ak_f10643042239edee','2023-08-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$JNeQGivDITgxnrR1Piis7U7urfHLRG6xMfXe1RONBJwQQB8fD6zhY','admin','ak_ef60b390154ba6d4','2023-07-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$p3cpDoMeKzC/VukU88s/iyJM8AmV.yOJxL.StCCq71dceQr/8yFJf','admin','ak_d7e2d94c3f0ef60e','2023-07-15 10:22:00',NULL);

