-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.ZpRIMAmmiG4FHv/S6rRSJJd9bnJ5w5eJD3sdfbFfwp4zz6ogiOxu','admin','ak_53f85094747ce5ce','2023-02-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$0mGo.z2M1O8QbaPnNroAJiFgo3SCHDy/dwbjLMSECPZfadN4o2zTv','user','ak_6cec31bf360a9f71','2023-12-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$yOUk/EbTcAjFwxCGW3uVsqoukE8JnaV2l7iHtxeE6GMAZ2GdTzwKV','user','ak_e65c169cb931f14a','2023-06-12 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$/3oM1vNoc3kPXORFRd3nv5aBnTle1XZHSaKbzzZ7yA9056ZLnbJB8','user','ak_993be729c165cf49','2023-11-09 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=43854;

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


