-- Host: db-master-1.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=17155;

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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$fS7cnEHxICwuGiF90lnD9RfZTBwxK9VX9YGTG5MYcfKeqgsmqEmHp','admin','ak_ec22effd317a0e4d','2023-06-19 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$pgIrUeJLa2iNXmeFrYXJcoYmE/S6jcunaKwABTnGP3D5KuWJj7xvx','user','ak_c504de557b9f9c40','2023-05-10 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$mW.rnmT3qr1ggqpF1NykE.ZZtg5xhQcoCDJeX9att/HAYEyHV5ypH','user','ak_749205c28d4ad2b8','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$IGqef5xebffQ5o2hBKny8JJZ7TqXlrWOp7Q9Mf4Fk0mF0qR3Lo6nz','user','ak_0943a693432edc41','2023-01-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$riI0XtygZmmGrpr1iiGAz2EZ16U5itmU1L74VE8gLcuvBTK2T33gK','user','ak_502d724db1d273d5','2023-01-19 10:08:00',NULL);

