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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$xqc8aDkQn7sf3q2BpH.kUYFlxXL9zOisENpB0LyHuAkkPbcxNHxNs','admin','ak_0b34c74cd0a1c3b7','2023-12-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$MnfEi43B8zI281etMTrP7E6nB.J78vvtKE60WetfbMsNiw.ChZwhR','admin','ak_b920de3a5dd0c7b6','2023-03-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$3jeWZbYbIzRxFX4QuxESum.KAab0IPLHXmkYCLglYiOPxfNJtjRkg','user','ak_898a20ab344b1604','2023-09-11 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$DTnfAICpXlMYiMEdujNFyik0CpjUsqQmxwyr/xI8Pd8rblyergniA','admin','ak_9e08abe91d7317ae','2023-08-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$3BH6Kx9YO6k5J9sxZb.uyNzPoFN3tMgbbZ0.VMkJYTtzVf8VKYO9D','admin','ak_0337474fb06a94e4','2023-09-24 10:22: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=23108;

--
-- Dumping data for table `sessions`
--


