-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$0nDvHLeDCISumJ9f6GcbOnXOPry7Wknktkx/tKFvdcjQZONCEt/it','user','ak_933dbf310fe99ab4','2023-01-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$svGvDRXYkVm2obm1K6ki4wIapRSaTFu4rvuGA0zazw.YcMOD1wnC.','admin','ak_b2eda6d0cbffd1f3','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$.xqqeqmvvFA77rKoaVAQYIsDicOzzP9ZaJMdwbZO5OSUYCcddBCqY','admin','ak_604b0d90035b9a66','2023-02-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$HtFPRj1x0SIkTB3rgpUuwhJ.EvIEtNTgQP3trF5M9wWkdu7Vz9POA','user','ak_35ff3d9e26bc303a','2023-10-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ofIqbxkGqEQEJ8ujMqkETFTsLlnXjPNkcwIxMSAAbKUZuY/8WLdg8','admin','ak_9d34bbf142abf061','2023-04-24 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Leoy5Xay.MXosVDIcQBzFfHfFLtnucINUudgGwHPws29duauY4GPp','admin','ak_2d03eca1ecea5d12','2023-07-22 10:07: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=32038;

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

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


