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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$6KH0xUfbgXqQ7nRcSn/mDRU1Mzf9rDoqDm3qHQQWA9X4iryDOv9H3','user','ak_478343f2830f27fa','2023-02-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$FpT537Rs19R/i6XJ/2GZAryJ52kzsh4IlZXrjAEpR.1kUenSRYAlE','admin','ak_1145a7bd28f3aafe','2023-06-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$TXZMN6MR3MhQJ24YAJ8MCDbjIQ8wDIMnHIYCx6bfFtO7LC00Snl23','user','ak_6b273a900ab5f53d','2023-12-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$0ctXKWRfWhPly8VlFx82y..PyDukJDTw90VsBsicfAFFhMeISQtn3','user','ak_481a1d1bd428842c','2023-09-06 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=38060;

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


