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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$TSiGLYlgNGslny/xXDacgWr87KlLSTB1OvbVZ4J0k8sxBm7mDHGxs','user','ak_6c0448d22980d940','2023-02-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$1yhD1OurCVQb7a5abULiBIlknvqtjMOMGQWZpi1TWIZv68hLlYZz3','admin','ak_fa4d92d18ebd1bc8','2023-02-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$R1Li8WNG.rm/I4o.d.zQmwFfRmwdG3ABLZ0NMrDrHdtjOHwEbH.Ts','user','ak_c5062cf82c5fd5f3','2023-07-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$PRCe4kfNcTQiujll0dZV33/pY4DusZ0CTrUHQLKAOnxlvY4LMtQn7','user','ak_7f7ab7a29209b95c','2023-11-22 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$DmN9eSbC1v/AcZQfZsWl2XXjwo6f56jgosTKFn9f/.uC9jermN7HE','user','ak_57ffafdbab762409','2023-08-07 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$bdZ1ObSwYecu2qkrOLWQGUsdsblg1AjWlAVDUJqwKrPQi3hSVd0JM','user','ak_65822a8e6faaed65','2023-04-21 10:19: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=26562;

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


