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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$d96HSdJ.KQMIX2BpPDRu.RkCE.PmJY71.9jp9OETt9cFqvGNskm4z','admin','ak_5b3ca68e9ae6c6c7','2023-03-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$XLuwBU83EtyH3FUHUIYs3QdrWK3SENblW7pVq7lGk55cz3GOTEzIE','admin','ak_874904480256acd9','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$c/8VOJJO3nKpeqAalp5Dh8UUH56Tq/SX0I2RPNNSydHqYFM.2KOuP','admin','ak_57392d4e5d8e5740','2023-09-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$mxTB/DqtIenEu0ni/1kkXmuu0mtHgrFWfpHtg2o38cYhjjJqpqqt5','user','ak_34553cee0ee6f91f','2023-08-21 10:04: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=12409;

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


