-- Host: db-master-6.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=28844;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$duKnnDb9ycKkPC7MWCPM4OeAVUIyIvsvuK1tmAH.A2yBEeyGvBPtA','user','ak_6bf26f0d923ff33f','2023-07-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$4NOYDiDur7vocOvHr2g2UxFcDQPXMQfQA7Y06wBi7jA/NNj8/bUus','user','ak_84cb9dbfaa235a13','2023-01-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$cWi/BFXSITYjiBjSiwbgjTEqnE4EznDUIO/S/U3s1E4ypC9mxlCTW','admin','ak_767d028368d1c1bd','2023-03-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$n9jE0kOEuKrcCr74NS55SPQaOlz4M4gfDnieHLaPh2vSBMGhHmyKE','user','ak_ef0d1bdd98209198','2023-10-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$A1Ncin1nU.AywegEEw83QR/QgZUTPUCQOuV8sPQPqc8A916sGWN9q','user','ak_2ff58fea49ecdb04','2023-03-11 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$.SCdWTqnEdILDzy48FpD/XQWjj3RJmV.7pEJst9e58fBykIOKnc5G','admin','ak_5d472090299198ea','2023-11-10 10:23:00',NULL);

