-- Host: db-master-4.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=1927;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$qt9l0.iFHNQATu.9zoce5WeANdR8ss5kg1zwzQYDzQHRLN0C2MzH/','user','ak_3302571db2b6af2b','2023-08-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$LFHiwJfjlhSkKVPLEaVNu68lPL2i6HsEML.8w/yuwIkPz3AOIEbEd','user','ak_47733b89feb209c3','2023-12-06 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Sk9ztvT4SlTZLOpDug9ZQGisZ2oxYSr3SQGaYr9vwowPp/bp0z0HI','user','ak_a3fb58630691fa75','2023-09-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$I6b8K3VOG0vo27IX1YNnRPxsmFgIQfyr05zt7YDQtWFoqgeNVMPwb','admin','ak_0266c46a0305c3cb','2023-08-21 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$q88wO/EWIO/lCoEMJ.BzJYXBC4tBZjCHsEXXAaqL2GgFxqvS2blsj','user','ak_05fcd0c078a9a120','2023-12-04 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$HFIYcvv5QG3srBte9bfPTsmfZgAqimqnPJ8B.AIMZvxRucja2mGg3','admin','ak_3a03532df35fce06','2023-08-20 10:23:00',NULL);

