-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$Mjc9MPtWomfuQiXZ/VdHLIDECKxOT1iKjoOrEGvjlugWxEtV.e844','user','ak_a0a652d534322f93','2023-02-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$a0YuuE9AFBb2l8GlLkynPzJI1qCa/EMB0PpeWcbgFkl5vlrFaEp6l','user','ak_cb1e6083ed9ec3de','2023-08-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$epH7JOk/J0eTolLvWoDQmKC8CQQvoxeV2KAd790TnoOaAwZkjiAD8','user','ak_d144f0f0db282e54','2023-04-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$WPrGknHBHiQlcbzw/QPCtuhaLgNIA/BMwR9UYAwi7nOStzRqpQpYV','user','ak_bb7bf3d32e4f514d','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$JtfEEU79Zyvnu.2Yyo7gVbFPCF8vb8CldsU0fV8gtrjV9sqebmh5Z','user','ak_eb3844f5cd7c6b2f','2023-11-21 10:08:00',NULL);

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

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


