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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$unqKlonfcOfemTCRz9sUHVElODvWvgr9WbXMziDOEHCIxwJyXTycQ','user','ak_2c506c71fac93480','2023-08-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$OqwOVgMA/9.N5VP6A3UmB1n06Mnta6zKfrtklePJ9eGRWZ1KqSCDK','admin','ak_bb79a45f02aa38f4','2023-11-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$kmqCZ/MP5sVO30OSW9vLMj2rDjZBCJAV0wR6cfu9c0qQlLwpb3BDl','admin','ak_12f696fbb3abbbd5','2023-02-26 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$AgkfV5aIQcdzy.pxKS3zTq3pXg8EJgRh6d7LPZDZVg57/RkpdE.jS','user','ak_8fd05f362bb0c4e5','2023-07-16 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$UP6.JSDfjbZjWgTvvQrzmxmAVAUQr9CTTQ7yknnMKakWIMYghLzIp','user','ak_526c3beb5aa17046','2023-10-26 10:17:00',NULL);

