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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$1lzLRTPisNKy2fQPR2p4ZjCpOrKnTEXW10s/CFNv.WcZV8BCnPyIF','user','ak_b930988c6c2e09d7','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$QRYTqhRcQhE5ZR1GMvCD.AMIk8yiKOfVQYpRyvTwUElVl2gSq8PAg','admin','ak_a8593c3d43019002','2023-01-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$lMyeCnpbb6GaNSL1BHNrd5gxYhywb2EBM7N4vWSUHuQCLzKxcF.YO','user','ak_22a554bc9250e486','2023-11-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BelaDHzmyzboUqtdLGXKTQbJKA4DomzjbVcdt6w2XMo1PHEkhQWvf','admin','ak_6708f7a0012e05ef','2023-11-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$gD2zppL1YomVl6q2SztRO5l4kLcGKIsAi7BERTpWFgKNvuot4Mj4G','user','ak_eb7b0f4ffc7d9c8c','2023-01-22 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$0bWPdAKP0KwMREjRvWdO3EjPibw/vKOul0ztZs2Z.Yper/QtEA/3f','user','ak_b7fa96fb8c284891','2023-06-01 10:15:00',NULL);

