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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$mWU2OdhFWKhnzeQH13kx7eOp3CuA1xDrEW/riXbVjbFr4XYADr61J','user','ak_28039bcdf7f1d85e','2023-08-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$n8Z3fhnxTBp8hg1oliO1.iXuYz.VtNXsh1SFG3JwaNLEC0EL4s/zC','admin','ak_1bc8741a1824597c','2023-06-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$eO6imD6Sx7PqMGmXVGUrZwSElz0xjURwLa8ZzUUW8ig7y56SAQARJ','admin','ak_294d3d7efa85a2bc','2023-09-23 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$X5hxOTW0nweYze2RQ3Xr8sBlYg1NdcD9YV4nEk7FL2ljvb7ATAQtU','admin','ak_6025c6304f3571bb','2023-01-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$0Oi5pTDzLukaeXXt8iumeemDpdfdy9.bmjU4ZaYSy1n5nK8E3PUAj','user','ak_312560e2ccfaa196','2023-05-07 10:13: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=50423;

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


