-- Host: db-master-8.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=44691;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$I2KTx7FxyePikFIjSO0kXP9uhoEqcrgZp0rEsQLWfc7cl5femNT0r','admin','ak_b79397745af2ba86','2023-07-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$HaL3eE2CK4ePa9zDjIrj7/PPyIcIZZ/HglvHazJrKXl2SxWhgWksm','user','ak_9591a0dd1856f41c','2023-06-25 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$vn2AcpAh5zzO5uPiefImljqTFeG4n/rIHphQTtFqAEE8MtI.BFA5b','user','ak_b41fba5def145d3a','2023-11-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$lPsJV03Bv.QZQXYVJGp3ttx18j9rSC.tdPKH50P9IrgaAlD2Fa3NB','user','ak_9a47380b38e47a81','2023-01-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$LrjLS9ZZAhN2KxmnZJiwqLc70Jof/afja9dOkMayaSGBy7x9jspmB','user','ak_c45994ce5e73e45d','2023-02-04 10:22: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=50938;

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


