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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$qw7/qWsxolWPoFt.bKe1yDWy/F4BvzfI1i0RoFoJG7dcU5/RlGGuB','user','ak_800199009a89a21f','2023-04-14 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$2UihUwNp.uaA.iz40JlbOXg4fkmRtFA26lCZmpSKzhKfr9aWhK0dn','admin','ak_b980722d67dbc0a3','2023-08-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$hvhWtQyqPe8VmhrzqEAiAntyBB6HMxImaGMuq0RioLZVjMWGP6rXc','admin','ak_de7b54d02b538391','2023-10-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$FVmpOu0rrlqVcyJxH4b4vnFs9WxfVSrlLaMjBRtmi1YK33inCaS07','user','ak_a4e28f6ba6c4f6de','2023-09-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$spRrJ/iuQ4I9qMuuTgIT/UuuKmzA/9eRtgFB5IfRX8lfjTX1iE8Of','admin','ak_6a082209e7b13cd9','2023-04-11 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$waKRay5hBAd6ug0A7aSG.1.ybV0neHKbJi/LimhQyLvq.5g9zsZkg','user','ak_eb77c3e36d2ea8be','2023-07-11 10:09: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=48757;

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


