-- Host: db-master-8.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=31259;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$9ZmLWa5OCUAKxc/Tp/iGw37/Rb87SPaA8skuNsCbAog9iYXb/XBfr','admin','ak_16a385646c5cdbfd','2023-02-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$HNCjYvW2hgg1vG1CxIZjnIsstNOOfUSmVMeGzbFs4O9OgpXhtZkDb','user','ak_8a6ff865cc0892bf','2023-02-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$VkNbR7c2S7hpScwuxcp.MO4K7TJ0mu4IprH7X6JFViQ9q/Nl7giMT','admin','ak_3141b4e23aa164c3','2023-10-19 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$FTEQIc5/MbM9oPD/MGxGYcwTnPjSB75eCTNWM6B7EVdIGp54sZfD7','user','ak_aeb711155401ce6d','2023-03-19 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$JOk7A/c0oUVJOlWnPJM3fSyYmwHQ6pV1RHAvnbHPjqQhaFQRyQnKN','user','ak_ebcb91bc30ba5af3','2023-10-03 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$bjY.Q7DzG7rEpYPtcCI/kbYi0TJZtZgyAGdxbIJPXAszFMVroVq5g','user','ak_04a900712c73a1cb','2023-07-21 10:03:00',NULL);

