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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$bE0mnpmXUW63rQ8flUtWYp1KNWG77Zc7wWVEVGfNkjJU/rl1x1lmQ','admin','ak_c7f103055b4f4d03','2023-05-03 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$gTFPekKKrxMbz9hlAV5SqJdXMVSMOMEt78Rz1rqkpjtEDFN/pM7hi','user','ak_a6d94824e6f93b24','2023-02-27 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$vpTFSHQrfZVfCSf6Djs2XeGkr27HA3AqRarm6irEDr72JnhPvNXh1','user','ak_15e2ffc879763dc7','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$.HH.g38kvPviq1o4jNIgffKKCXo4Pfsof34r7rL0LF6Ylz51IyHNN','admin','ak_056356dc93f23974','2023-10-28 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$mYnPj3wRwRsTTtdkhPI1WuszTywtXfvwDimMiVFsUn.VLkw.qGhSS','admin','ak_8ea052372880d3fc','2023-12-28 10:12: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=26110;

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


