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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$.jO9YiBSw1rVSzJFiXhX/R1mvJGsjHLrwmWcWRox6cGJM9vNHkwRC','user','ak_6d6508c6501483ef','2023-05-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$83FGuuBlnwcNvZXl6v9O0VWRaXN6.x9r.jhLhdKLca0IccEMeggKQ','admin','ak_690fc802eb179cf9','2023-02-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$x0/QSHzLZuHGIIOkf6OiQXqHMeldZdK1B6WYArkEo8aE/4xomJZHb','user','ak_2b867913ce889e89','2023-08-24 10:09: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=34723;

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


