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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$q/ia5uSW82p.YJ0SlTO2rPcrg76q4W.obnOEQa6M6odTXV4oMi4rY','user','ak_ac02d7ad887a9721','2023-07-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$kZFlWNCqAhJbRPRYPBFbERarSvytxoDFUT7CkMNYjjxVQx7vV9IHv','admin','ak_fa45c38c63a085a6','2023-04-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$yQrIM6k8uX5WMp1eE1eXgL2dDpfK97rcLCWln6F2CG5G3uP7DN1L4','admin','ak_e4c07e031403d582','2023-01-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$WAKP/lXxhB5ke/Ew4ktKtZy7LgZV1CuyXOg6NBG5q5ZYyq.M8ntZj','user','ak_ffc6cedd1fc0d7f1','2023-05-21 10:07: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=48510;

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


