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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ziXUnOdp.leseNK0L05vjLhu.WB4SYkLoixcFHhEMTeHl/hGBObqR','user','ak_118810602d14ea54','2023-09-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$BvachdS4iR39PwZCW3CLHnfeTkELG5s9evQFZ5pUWtpo2vmf.RCAG','admin','ak_ccc6f12ec4194df4','2023-04-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$nO7CL7QeFjIMu8aP5Yrhe8AwcQheoRm/gaUpM2Xldi8O6org14W07','user','ak_433d293eaaa372dd','2023-02-09 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$XOGsZY7HdMcBCZV4eTLpi/u3aKJpLLnktmPz0/e7BUubfM/5FDx5U','user','ak_175c056bb01008d6','2023-07-09 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Gy2SJPo3BbSXpG0WiuztIyWLxnRrBZDX/RzHh8lP.6Gv7wnRpP1Kw','admin','ak_ef37e58455ac2bd6','2023-12-12 10:13:00',NULL);

