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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$NLl7mi1JxkzTSJMOEqGGX.VuR72bBSbPO2l7.jgew0bnGhmdqjct5','user','ak_db66628bbe4856a3','2023-07-20 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$O91pC8nLhvPNVbsCLHjP1HISGqNg5DdiRHo1LLVSS44ifI8VUcvMg','user','ak_e44f1e12cab6de0c','2023-12-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$WKgBuCU.p17ZVMy56vgw/C3xhAfVuGbQLVwnV.tZ6qiJAYqbPhkpY','admin','ak_6678dc424f011e28','2023-05-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$JP9GIeKuMqQ.haQubQ3k8ba0H5N6lQ0ABru2rihzSCrhR36cb8klA','admin','ak_4ae3a5ce55a62032','2023-06-03 10:21: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=13118;

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


