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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$W.6DfB6G4R35yNZNWmBtUk06woFCjRRpv1/BwtrF1BIwBj1Ztj/1y','admin','ak_c301be8161bd2ef7','2023-05-06 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$2q/2nAT5XfdmjUH9TLn4csx4dXD8dH.//bJqQmTNONJ1cph4PfbwQ','user','ak_8ae4beca1a6f2757','2023-11-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VbWcr5KKuejCkiwAnl3DnexFKYZcR/g9PkiI8lWWbfZVKVkdVsvyn','user','ak_73bfef9d872a77a4','2023-04-14 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$T49.d8smv3Xm8j37boopj0bMNs7DBpl4iWjr1S8hhD53PPk4/PD3F','user','ak_74d186cb08a09cfc','2023-05-17 10:10:00',NULL);

