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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$ax9Ihg25AiCR3J/FPfMPzU9DWJN47qIcjh3RxEsFoYuQmHPXslkBS','user','ak_c81c1c9da2b87756','2023-11-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$8wwrtQN5Kmm7b.CPdW0Rkc5TWz7M6XNSPNfXEza.X.mCgXEVrZHit','user','ak_aec2f0a42e7ad356','2023-09-08 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$OkPDW8GL6MTdEEgbcO3fPG7ispvmpkDWjb.OdiskkXJxvDRCWQPLw','user','ak_38374d1bd62dbb57','2023-08-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$uSGuQivjYainh.bPLOL9QoJHJkPVIrHsfIKv1QUTmonszRtWQchER','user','ak_a56d95ac7b8823d8','2023-12-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$bsL056hURN2ZRTpC3CAgRPVcRlCtIKznBRudmXO/t8yo56uMVE5dI','user','ak_09f03292d7565d5b','2023-11-18 10:06: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=18800;

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


