-- Host: db-master-9.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=15677;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$2Chf5f4WOYuMIX.DlSlNZ1ESLJfTlHmDLLmBdDrGntXVrvo34aGpr','admin','ak_0780b1e4c4e33126','2023-06-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$MlQUfNqloNh8YDsoBifmHH0pO62w6UW26jzRvT.psbsUrrSaZ79jf','admin','ak_de2ceccf1971081b','2023-03-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$E6MwLbmysTaLZbT9Fz9tC8mA71xjRTiRETWc9TMRd0WDH7nMmx6FS','user','ak_ab4e0edd63420481','2023-04-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$8FOgAKP7tSfnsWNzEusZk/qht3V4fqXE9VEce43wGl4oHIlGxyQeK','user','ak_9348bb5a3c3c9354','2023-02-02 10:05:00',NULL);

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

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


