-- Host: db-master-2.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$TVhvQoiOurMInpvzB1rzAwn.ASrR1/o17LlQh/6tRVY/f22xEW3p1','admin','ak_91257be772137b11','2023-03-20 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$ywhL4GtPIqRLKf6bN5eFc33SnqQKMBKu2rmcDJMOal9tmPrwvlm68','admin','ak_631efb0043ef5128','2023-05-14 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$hKz0LQc0GpCRAPQ3HtOyrQV2rvnxSzJL2N9P8b7MWFbKEoG2ZFZG.','admin','ak_51ad17360bd7a82f','2023-10-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$vU0LgsTAGMNpaz6.Va4x4.ogadXGanhxJx3rxRwWh.jSUqczE7wAQ','admin','ak_9b348d9b8a9dbc9c','2023-10-24 10:13:00',NULL);

