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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$nf/DkX4KsM.m77T3MN9Vogl9JtKDU5r/h/CQy7YQ.0GpcQmL2J89J','user','ak_0f4fe3b06365bb3b','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$bM2Femh5H6OhZaxu4BPFQoeUD9mFeWwKLUU1v/FZI3DwQZZSW9zs6','admin','ak_4c12e2e48a7400a7','2023-06-26 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$jltzbo7Zh2RF98WH/vV5.KBQ62PagQ.i7LowRQgUZjrTGgvbrEPUR','user','ak_df614765d3bfb1ee','2023-03-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$d2FkPCblvCFokjWd4tfTjoFYm/pMNT8dSGOno0c5J.3OMSxSGVyxm','admin','ak_90bd41d2412db90c','2023-01-08 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$fLJO8mj3gAnfJ4M0Toxgt979720mBqXWnYHyd8DsniA7pSQyYNPOf','admin','ak_9ac7ccb9cb9c7479','2023-02-03 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=47397;

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


