-- Host: db-master-1.internal    Database: main_app


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=34436;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$/4ykYRbDBCBu4t.FCrkGmn.lVEYotWbZ4SwSfTA23D/os7f.APUgY','admin','ak_f3f385bd2fe198f4','2023-02-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$8KJStcGMruE8EKip1t9O4JazZbsZIzcLz2a0IFLMqbC5meR1gznIb','user','ak_2b7a5777d6a961b9','2023-07-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$9XbTeDcozhr5VpQtR2w1GWn35bL0CKCrNH1b7.sCer2mi4xy0e2Ib','user','ak_6f3669c4da4ac942','2023-03-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Q8vp.PI5Pub2dEfEFq3JmmN.dzLORwfCiFUK12XtqsPAZbTeSRs.4','user','ak_835814656cecd8b4','2023-08-07 10:19:00',NULL);

