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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$p.7tj/SkmRmz.AEb75fMgXGmoob0qaM6mPZ1KbdUkIMfaJnZe4a7s','admin','ak_a4740cef7b968ec4','2023-12-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$UHOjZSfPYvE0yzbaGQwTXcSX3gpL41YsuultadfF1DzSdK./amG/O','user','ak_6d9ce7a63f9035ee','2023-07-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$rl70vq.1Q0uCXJoXIZQCE/9/30SqLyJui2yKefodAsulvkt3qTPtX','admin','ak_2456bb3a12ca3f7e','2023-09-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$VVLeI7hxJMkE7OGnEWX.aYETTXSKhUWp9emLbmpLwY2ien3UhGjSR','admin','ak_77c9f68d7cfefc6f','2023-04-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$RP7Zdrnt4knybrXVaEtvYkQ2xyGo/pxSxPmhsg3QBKI6qw.QEk767','admin','ak_a3b7c998cae8d8ee','2023-12-02 10:22:00',NULL);

