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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$L2TeQE.fyw5mXjpGIsU0p7eVM9j.N5lePghTjZDoVLmze9IK2a2W0','user','ak_dcc42c402c4a2a59','2023-03-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$TgdB62rkqcz7QDXpYUEYfaGa/ESiojnrGE1qhwZ8/KwqFlyv95p/c','user','ak_5fe2d4e1c506b47b','2023-04-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$1CClb67sQd5IWVG3v/PUHg6yxX6cg7a54akJwS7QYiVB.3W/qp3t8','admin','ak_9479ce354e073d61','2023-09-24 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$UW/azFElHx4PIzI9UExbtLUXvceCK1FbW2uG6GjMy9kjKnP5gqXIQ','admin','ak_35f056e259385248','2023-12-12 10:15: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=39738;

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


