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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$5zGune77rtWe6glmunX1MFKXlFMTGnWfe.BiVYQIoz0ac/ZYa17NL','user','ak_114d37d881d08e0b','2023-03-09 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$C4LjZRrg3ygyhafhy43GBHuDjSQgcCgwstZTyWMvxdk56uNsw.Gzr','user','ak_1c112898651481e6','2023-08-21 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$jSUdLIc8R309QUyS4CGENE9a1tIHnVcWy0K9/KyOul/zwy/xoj9Bt','user','ak_22941c5b9559b6d1','2023-07-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$SHoHOPcETRoVPgjGm.WqdawDeQenHzctZeToizG2gEe62dH4dGBc1','user','ak_55aeccb732398cad','2023-02-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Z72MFTdntHk313BNddLIj0bj5BRhIo8DjHqeZ8VMYDeiHTNnEeSb/','user','ak_9c51314c403474e3','2023-12-04 10:20:00',NULL);

