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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$84snZpDuuLNM5UB33osoiCkZoQvLcPeBL6jaHzFe8CPcm8SbDH60b','admin','ak_b45be32070d17f85','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$MV4DbnYpF.PBwZmMUiAAgVyQzDOoHSnsU0Ig9oWgg/e12uouSpiHB','user','ak_706fa1e37948008a','2023-07-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$cTfv3.fhU9VEb3n5fAcTDn5EPmGHj63zMiT7D.c6G7p.AQhmaZGpm','user','ak_8c2070620c17d2bd','2023-06-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$KWeqr93H7Tt0oiXZ0GlSUfSptelzykqrttDWQXiKYjFpW6fyy7sim','user','ak_4beffbb53a3538d9','2023-06-08 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$tFDITh1oa9DV7baRpFsYw61VPTMt3pk5c4ViTlkw3ToGmrpzZi9Dw','admin','ak_284a936df20c281a','2023-11-12 10:09:00',NULL);

