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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Gnf0e17o0I/rQOiGN6Ebgs7uhArQHc9nNrgR5yDM2.RBe3xXDOkTT','admin','ak_558a96f7fb5b6a8c','2023-11-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$SZAz6Z6VS2zf9QyiynGBOiknktPcq6Xmk1.cieqQtPLB4R2kX6p.d','user','ak_723a25eb0dc7c562','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$LNRgux2jN3/2ocEUoESzt8rZ2U6o9fB//WkSLMb9HSxmwXuUnGnLZ','user','ak_88239d614ac23e40','2023-08-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$leHRU.qYbkVxSAfazicHmSonryWNT5AUulAVx7jazEqBbLv1er2mK','admin','ak_0fabad443c6923e6','2023-06-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$.L6QcBmF9bdvKnYOXy3Ucn8nlyeDdZNFE0UqeEYDYPpRVG3UCFnHn','user','ak_454b5df181fa9cf5','2023-08-18 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$JvlwrMnivcT8RHfAujeV4QFDZMVmNSIlDvv6jtl7zWeeqH1z2U9YO','admin','ak_c30e3ab2235e416e','2023-01-25 10:06:00',NULL);

