-- Host: db-master-4.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=11514;

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$z/jEuIStWlGryrrzjRrFwKEAlXXPoQIULjssARjBKz7p5iLIa.1Oi','user','ak_c4f97c3332aeea75','2023-07-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$KBZNiVRVgTKlsg2vNTP8igqfvF.V1AiEZwSSL375cY0VJKNkkItdh','admin','ak_e3e1290f95425c35','2023-10-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$8x/lWKFZuxin4hhc7X/7xriOv4DCXIRprtfu8Z82Whn6uEqXtHYtg','admin','ak_8ced44b7131bf246','2023-04-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$1Hp2epRtncZTCzGOSVm5Mr74xeL05AypRVm0f2pFvZpHaKUOmeUvT','admin','ak_47c4a2c9083b5131','2023-01-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$nEEuxJHLVivPnF0UtI9b/lJ5wJiK2nTJBQqVMzgLs53pAEVM7cl2R','user','ak_547c034ca55b371e','2023-12-22 10:10:00',NULL);

