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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$TMFLUntbyAgzES03HeibujqJa2YNQIk5JlH3h3F2dw3eOWVjih5bd','user','ak_38d3ce62053a8bd9','2023-08-17 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$BWozDJzGD6mugN6AR5eM5A1GfWfd/35hFisJMIKmVQYSpZ5pP5hSj','admin','ak_b986285050ffe86d','2023-06-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ON40xLmFzRTNXbCxeJrwXNJQ9EroyVm/.taHSsAV6/QoXYgc60lIQ','user','ak_609bd3f852304e7d','2023-11-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$2tlMGnSNUS/fzmzLwaJbfPQ.2Dn8yFJ2Zzh0zx.SnVL2sPDdYQshF','admin','ak_829904cfd8540dd0','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$.kLQE1Gys8TpNiXGr5WnfttOFWYn4FNi5rDm4/dEys/j0CBAdlf7q','user','ak_f14a9911cc1eb756','2023-03-22 10:04:00',NULL);

