-- Host: db-master-0.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=40656;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$0R3qDGfCwMoynChnyBiywaKqEoQXX3VSc1sje/M5.dFR0HFZlbmr2','user','ak_3356eab17433b515','2023-03-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$itWq5Fd.qGEqu1eaGr53.1xMjjQVfzrkwRJoTk76fu11kSACxStx0','admin','ak_3cb6401cb4166689','2023-08-09 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Eca/L60BlMM16gbdSm9HGu./1yrDVf60ezRRK52uWKKbw19ZGbtx0','user','ak_fdac5e50dca8fb6d','2023-06-14 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$biaGXUDprOHck3IzXt.xkTo4LVEg6ppceO/1LNEctNk0eRsfWlQpa','user','ak_863c3b787a3f6858','2023-04-27 10:00:00',NULL);

