-- Host: db-master-9.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=49766;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ofOoIl/mW3THAuxDD1ZgmdcqVhmwSu9xnPAqw1/QWWffGdgk3nkXU','user','ak_cf113b1b22bf6c67','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$0tX.V7CTHHPUYmdM4X9hw/GLpqKMCn4fdnJPItVPm9ShY3dGCeRoN','user','ak_5647a5b180221395','2023-02-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$/5Yr8EvvNEMy59Z2VJ9ixrnONnTKea5N0RTmd5Br79qwl6.fx8A8D','user','ak_de275fe4ecf4ece2','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$F5MSstQMabL6Wb0Eqb8VviuNXG.mRBBBNYGxf09pWagjFPO3j6QHQ','user','ak_b68960f1cbfda43e','2023-09-06 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$hrPWRuG4Qj3YQ5bDQGss0PkRBKLLA21sEJ8hzf9lkqzYcK0LeOx00','user','ak_bbd63759b5213ca7','2023-12-08 10:03:00',NULL);

