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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$JQZnzLXhhgt4bu3BuFcOw7gxKdjs9Q1tvOhwpOZmCNr2s73lxUYLG','admin','ak_115bacb8ee49b9a2','2023-07-14 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$/lD9WO.sYJNZZMlhyQhKb6mEWB./YLY0SeeIN.Nc3WZQZCG7JS7Cn','admin','ak_7eb7630510e14222','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$dkX2ggTFRPAb3iT4zB7JtR0zyMw5SMZiFXi6wf7flWRLNRr1lv8c5','admin','ak_757cb66beba0336e','2023-08-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$O0zcc8Ci5AfDBSbAmEvl2Qin4C1Ev07Nv2CFvTkur5gRgcCrfl4ou','user','ak_7e2965134bf331a8','2023-08-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$czM/CHk73oeASF/e8QXmLNYeSqHwCMrqpUGQxL9bKp.94AKpNNBKe','user','ak_635a011d867e1f3c','2023-08-06 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$Rm.r7Vn7dVjB7WuoJqiZSJy.4BS5bCtpF2.qlPbCpgc4cpeznCSZq','user','ak_57f0f633e1c37d44','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$eJ8Hx7IIUIS3p1uNgVJLPlw3MXFDyFRbD16YTNmvKyQtV8DSaoCq.','admin','ak_c0c3448cc0d69edc','2023-06-18 10:11:00',NULL);

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

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


