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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$E0bYgxq8ze94YiVpfgEtA/aqB4oU7EJXh1sTdIVLfMnpJMd0Ft1Bm','user','ak_949b6b095649da95','2023-09-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$RF93eDeHp39Xk0eOuz65d/xDt15o.4qxE057ia62RaPstGQ8X8l1g','user','ak_89e803876b4b9cfc','2023-10-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$qNOv0SXC8E8xQi0Eec2bG1kQ52mNGAXVB7rPMdWkKg3OmqvjN7fLh','user','ak_0e3cfc95c9f21486','2023-12-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$VBkQikJMz8lWdeQOI59HuzT9HtUMAhd4L9VgJyhXl7N2OGRfhdhUR','user','ak_bc0fbd18da19e166','2023-03-19 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$/LonLAVUe.UjbkpT8EzR6QF0FTJ.eYpSETuNwmvJ6MrVU7zcY2xtw','user','ak_39129cf47661c69e','2023-01-26 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$hLSp68Ki/IUiXrwaV6EAO4MEKg7LDwlbxSnQJNHt879q0kDlxXesF','user','ak_6dba48ba37deb47c','2023-05-12 10:08: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=47189;

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


