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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$T/2q8oPAwgZb9hvEUfx/qX0thXkBuu8xV.i.zgoIPZLRK50Yogkk2','user','ak_967b99bb1d43488a','2023-04-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$c9nk1r30zIOe7xMUSqfXdhORtcaF6oi90/Uq5.Qu/hPYHkFQs9CNr','user','ak_68fb5bacd226200a','2023-12-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$yCrRPtssHcMhypoQss3LCQ9Lsm.Hi6N9oniXTzyuncqisPS3Prhlp','user','ak_e41e1ef116246691','2023-01-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$mZ6hUw5oYeQ4VWl0Kx/lja/CzGDQ43.AGV4SktboooDutpUFsQDF7','user','ak_b3fefdfcd4f7c55b','2023-05-27 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$4NAQMz3KYdGYqCRDFptuqCMV31lPncYy4qBdbqku1PZUX7G.P4vz2','admin','ak_0d199bcf1cc13f65','2023-01-25 10:11:00',NULL);

