-- Host: db-master-2.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=27041;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$lDNOIKESFQoTB/bvaDz5Dl8C1l3OpvP7Efy6jiIBmJhXhz4IK7J1c','admin','ak_c5382462ba5013a9','2023-09-12 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$tWzZ9vLtoosdxRPY.MVJMmn6C28.R7fc9QWKoWfoWSLDKSDPeIxAo','admin','ak_781cb1f5876f0de8','2023-02-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$cXI7Tsiig9klYsx.cQYMh1twyKd2niNiCzfwhpsFxjhD9O1e28CQ/','user','ak_39135c50fc97e58d','2023-05-24 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$mOFGnQAtqNPNGkaszDzRBh/VGwyCfmgXnpLbJPyb70EL1fxpO2hJn','user','ak_e96c588504e11ac9','2023-05-03 10:01:00',NULL);

