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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$wJgwHtQxHVScXoAdkyilMzY1d0sFDCq77Apvui7pJcGPqslQ5GGLE','user','ak_f8b5682bda9298e0','2023-05-04 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$XDRo3AF3Di.7JKAOLH4wDDTe5ly2hPVIMPwh36/3/XghdDw.cRbuX','user','ak_17fc2f32a2ca21de','2023-10-03 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$g7IGHjRr8zyxP5ZEBGdrOUqoNRlltdbWMbgTD5JmqVfMhS.dAA/Hh','user','ak_2e117492ae4a18a8','2023-02-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$KNZSkNOz4ADwX7yCbRvEIrMzD0j9xxF8DWgMNsrorGVlDik29QaBI','admin','ak_df441e4c84695879','2023-06-11 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$7xIPP81DHGt2KL/pnYiM0c0rN8I4XZi0G.eD8QegStuVD0KEzs.Hb','admin','ak_b7073eac94d33c11','2023-07-28 10:11:00',NULL);

