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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$UP98bw2z5bFH/itQXGZ/efStkyXkc7BwWK5RiF.N5IEG7u68FIk91','admin','ak_e3ecc10f795cbe79','2023-06-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$j2T3nH9n2XYyCBG4toTTWVwmyr7n5Bt51FVV6iwKzV/EzMpb.vdNg','user','ak_8431d12873182448','2023-12-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$nEMh7vDEztKpEHFqM/EH4wOjXepseLUEqWXa6ZOz8DCgbot/HAFCu','admin','ak_0b174cab3e82dd0e','2023-06-16 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$k1yGvayWVD4V5mgMsZuB7v9Ld/dKSK97XplVre7dAf3dnjjiF8CXl','user','ak_dfe673eb421c0be7','2023-10-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$PwCHvfRNsyU.zfJ2BtAFj1W.fYGNxA7Gzylbd8AsXrEOi4hx02S5F','admin','ak_c4d6267553b8b1fb','2023-03-15 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$QGnEjuaBB1f/cgFXsUZdmLfkmNVwT9X11J3fFt.d9AQUqL2/M2VBF','user','ak_b02a5ddd3dfcb594','2023-12-01 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$BWtyVAIdJeznKI9MAnRqbPlG55HiLqzkj9aTYOOUc9R5XOPIiE7C3','user','ak_598c7d5f24f8c997','2023-05-16 10:09: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=28974;

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

--
-- Dumping data for table `audit_log`
--


