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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$upVHPZ.h7zl5hJl3ubJoUsKptCCn23.lKGDCNG63QGPL9vUd5KwHg','user','ak_2b67924b5acce3b4','2023-06-02 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$rhSi4GXor7T8getBviphK8OC3uYjcLNI./6q7MMTM.orzbMYY89Op','user','ak_11a9b42fe3404261','2023-08-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$uDvCy9t1BTsEhWCU0mCNry2piiYBgmsiufmTS2ImVqkv..7A0i.zR','user','ak_0dadb413a605f741','2023-09-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Hp53OGLtE7XCtJrhtY6zS5TVmlcg0FYwerYt/ZvEPbbbICl.6CNah','user','ak_17798304020a503c','2023-04-09 10:20: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=33878;

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


