-- Host: db-master-8.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$.Ws/8He/2w4YDyu/PItj1OwSLMN9S8/XGhpOm2ZdKdBvOhu.ZnaRL','user','ak_7ef320f3ef15e71a','2023-05-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$osABoRBHZCPeXzIzfRkWAreVeINT5ClyS3jVpfc5KxyVph3D/uRTK','user','ak_cef8d23ce5a7a37a','2023-05-23 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$/nD6OLlRM4xIaSOVnOIguO4lZ8vqZvvVqDr2K5Z57/Yc.HkUvQy.h','user','ak_a1d88f3ab11cd17f','2023-01-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ABK.pHMne5iWDkEy7H22wcvX5RGsq0Xh3OYMdIhEI/oFg0oh.eU65','admin','ak_ae9acd246d023272','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$pNKVFkroQX4DcxO6ITqhoNwS2MR1B7E9WYSyKKnG341TGgNVsrirv','admin','ak_b1b0c69a055498e6','2023-12-13 10:10:00',NULL);

