-- Host: db-master-5.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=37822;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$cyWZtuMImcD.40pWl3HnJwwgAPqCtEs8IeaiiZ0ZhMIhl4n01gttX','admin','ak_3a1ca94f5be9627b','2023-06-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$q/Sd/LiD/xmODpaeFe0D5KKpku9qcRJ0CMHZyVfQmiTrDzvUdTjXL','user','ak_ca3f3f8b5e4313f9','2023-10-20 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$.v/vewcXAtVOgADiTWgCu6Nf9h.LBWTfQPVY0iQwZQTamAgGXDqjP','admin','ak_fb214086c2cefd2e','2023-01-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$7eDg.V3MakPth/ieqAUF5Bg6NE363DyMXDOFN8e2Co9Ov1bW8Effk','admin','ak_1f4f000082f4c360','2023-07-28 10:11: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=26615;

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


