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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$0SyU42XfNqsAdhlSIye5qDXCW5QAjTfryip2J6dUIWQV0rN8x0kqQ','user','ak_fb0fc35b1752cf9b','2023-01-27 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$V.VsSGEI9S.IDtlWrLvlaVWzkhu6WOispGf0Pw1OC5tn9o1qd3vR.','admin','ak_5fea6d391df9e31d','2023-05-01 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$rRJ/FV834uBMTj22/83Uw1pUDt/pWHDR.9oPyv6d4M3ki5YTBLfYq','admin','ak_c360c1c6ebc14b1c','2023-06-06 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$wbLVcqMar2eR2BgsEp3rQnbW9JiU4mNxhcxIUcEbbEG3HakmVUtVM','admin','ak_37462958487ff2f2','2023-04-25 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$eQiD4opZgFrQdHvh9jZTuKRwArNuIInWdWKTaFufIBIyk.k39cnO6','user','ak_72057403c62407c1','2023-05-09 10:18: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=8694;

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

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


