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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$LK5cBUzpFb9NgRABSS4WCIU7FgcxTVuauVwi7iTRXiKrnMkpL7tYV','admin','ak_1a3e65071ca22a38','2023-08-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$KVsBGmpWAcm8WIUg2R69qil2TyqUtpdjWTeWpIwDQQBc2pKIa8Gwb','user','ak_52b472b9a401230c','2023-04-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$vixiCfE3g1gOGi/qb.IOEtYsoHuTCA5EeYvYSzr5dhBCACBxMdwj3','admin','ak_e5a909ba75ec8b2f','2023-04-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$oEs.M5CwVvD09cUIscf28oNk53QSwuVWu3LNTDON1x.LAIZQW6Bj3','user','ak_80025e3adda7e31b','2023-06-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$v3FANDbxYgaWHYnh1wWMelIPJXbPw/.UVC2RuD4pqXPk6QYG8pYji','user','ak_5a16d41f3bb4be3c','2023-08-17 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$rkcA94OrihE3TaD9Of1xhcyaTlEnysl8iPdxHZwBcFd9WPfI/vGjp','user','ak_5f8354146d7933e3','2023-02-03 10:01:00',NULL);

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

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


