-- Host: db-master-8.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=23061;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$lEGDUTxN42sPI3BAFAysKU2uez9Q9FCOqBSlNe1kKoVPWfP7vobdA','admin','ak_4ad0506fc87a32f9','2023-05-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$itTkNfuRJ61XPWp6DOO3lCsNM5.wcUXyfNjeGU5YS4nb5IThyQaZ0','admin','ak_10007c518f277045','2023-07-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$GRcst6zQFm7LVG0upXe4Khrq26ZCekLStr/jvDAkB0pIxraXdT637','user','ak_60034ed2c55616b7','2023-12-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$uF/CRjcMKLvz4dL3MZ3ejQNgEqfixVejPRIy3ZbTBtbXsIia3Pqbj','admin','ak_fb8719f5c287bea1','2023-10-22 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$R4pigHfOHJb4kHOGHHgV.BdnblN7A5ClP1oOYuQy0ezIIOX9a8AA.','user','ak_56ff0a4eece5cc67','2023-04-01 10:17:00',NULL);

