-- Host: db-master-1.internal    Database: production_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=23756;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$H5SqV3QTByxeb4zF3yFBiNH.N0VezUyQN0P3OgGSrmMOnKLKq4G9Q','user','ak_bc978d0c9427dc51','2023-11-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$n9mr2t7sq/fbPFXOdKxycI/ACio5g5NkBjCCd58WJNKeMw2EGssfu','user','ak_dd0a358445b6ed9b','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$Bp5dmfArVnIkVSWLZ43eNEPPUttJJY4kizFyU.pG2BhSqOS2mtmJs','admin','ak_b212d1ad560caf22','2023-06-04 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$KyTwhICR8hekFbJnQDpCTh/eTyxMrkIW/FLkML9m.7dfURLomyqC5','user','ak_dc6df7e17f50c5d8','2023-12-10 10:09:00',NULL);

