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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$KmBkK5ohUAis36Wun5G7aATCLl3pbrYC8m4FPsldqdgdvsDw4Vd8T','user','ak_a0a10e3bdc60c143','2023-05-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Ub9qS3gfZsjJZ1FRx/f17nwfvT/8YDAnc3Q.kRnioGnpuRHUvwUD.','user','ak_99eb058ca54effa2','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$5ty9ir0l97rXM5Lu.zTJlGZfOCjdtMouE0KEacKLNnyotFNfR7cOZ','user','ak_6d375fcf2c4dff26','2023-08-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$cOhZaWkkgJH4Tzauu86pj54nUeivPmsd1.A/BUtOUrtc..Mzwl3p3','user','ak_15a216f604701187','2023-08-16 10:12:00',NULL);

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

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

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


