-- Host: db-master-9.internal    Database: webapp_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=39157;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$TIeT/NPV1p/LwcU/HkEdluqFO/x9RDZq3lx/F1wR3BJhhBOR2ytBn','user','ak_2ad50a2f6582967a','2023-04-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$oTfu20TvZURF3oQyJEX/7At6Q8LUDv9Nt2Oo9WLG1tWzMLuvbNRMc','admin','ak_e69c8cf2679eb00f','2023-11-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$qdZpR9qYWDuYcWn6/Bnbndc/53iUFc4xoeqpviYg5Q3MlJz2u2Du7','admin','ak_31eb52d96f37b90b','2023-07-03 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$n1rI5qxBOPmO0YRpVkqY6oR5Nyvgd0jzjL10QCXSCBPkyLeeE9G6N','admin','ak_a03cb76be3fb789f','2023-04-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$VJJRVjkK5NH9s2YjZb4LoQwMfGslS62W8cJhEjXRxWrpSEWu15yzd','user','ak_ef8b98fae78a8431','2023-03-15 10:08: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=24523;

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


