-- Host: db-master-1.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=36217;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ZIR2dpJUVh./B5fo5oWaXo0tO.dHygMuNS2NxNR9Xu1AZeoQ3DlHE','user','ak_f756551fe0eb30a7','2023-08-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$utB7OPJg1x5SsOonlwPqSRkesnlFpxrKX5kvQixbLB2JMdYeDihJH','user','ak_3ffe6e3503c552a8','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$DykTJ5zEK8N8Rk9vU6w0hqZmYBUbAalREHhhCsgOQStavY43G2xWS','user','ak_80e0868af4d3acb3','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$zFWq8BauSSeTda12TRc206QBQHj66FkntFsmGkdk0N79jJu.MlR1x','admin','ak_96a1ab6369691fe9','2023-02-12 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$bp4dVIOKowyNh/VBKrQVQ.qTOG1RM1K5BNdOZ/GCpAHmjU0tBHqp3','user','ak_dbca88ed158efba8','2023-05-17 10:13: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=4501;

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


