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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Xmu7eE88JeBR4tvykd8ZsdcZSe7mEJoGtqRHjj95l0ZpVcTuxCYW9','user','ak_36941c36d043a8e8','2023-04-23 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$FCxL9XioSM45sUKVGW5nkd35xhKFO3HOJ5mcPppndIAFT.wr/aUFe','user','ak_c44987545682240f','2023-09-08 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$YdtYLiLXfoSM4EHAM3xiKAPFd0oxvcNDE36lTBSMysPFRkjEQpZOi','user','ak_0d53d080bce8f7b3','2023-11-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$V/1kQ1eCUSX7drmzoc9sXe.hOybdtyqTNybC8e2cKdGdmIRJcyXj4','user','ak_200a041e00c69d68','2023-03-10 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$lNb8DVHn4tmfScJ3l.qiL781Q.KT2Kt8re5UO1ayh98lNTbS/QsIZ','user','ak_1eb16660afb0d8bf','2023-07-18 10:06:00',NULL);

