-- Host: db-master-3.internal    Database: webapp_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=24895;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Ja0jd0/MVXBo3rsbpY7enZU8bgOz66FSFeWwTFG4f4aSU0InU1N83','user','ak_ac87cf90cfa63e21','2023-04-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$4cPTp9PBoKRuIEaat1vvH8QH2Tu5iB2Bx7vhGgSpNdyQgq9DLPJ3I','user','ak_4ed6ff4aa73d7558','2023-04-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$KNVQsJFvCYnTb/CKp/gA3kAD/IQN6PmzDD9Jq5rgQtyoSUzVHr1KH','user','ak_decfa7c8e27f14f4','2023-11-25 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$sTcVD.SsvaFFUfg4GQZwfMXlDcmWUtIiYZAQLgY1nD0jbf8luSm8Q','admin','ak_25f4964398ffcb3d','2023-03-23 10:08:00',NULL);

