-- 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=3072;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$r13BpHq.ZJsZsDRBf9xuaklqEq.eD5vVolPHwMPgmvMfsafQQ71Ha','user','ak_5f8a9bfac376fe4c','2023-01-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$P.DrEO7hA/684GN9w36fpEJ7O.PZ.Fr7p/fneFqjSz2LNDTn8GHI3','admin','ak_5ea3f3493f414d9c','2023-08-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Pxtvp.STUQ39Ea5gdKJwmJwyXxVpYcsLEFXA.yaQ5.Rw/9IN8/wua','user','ak_98c63785126fefdf','2023-05-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$PrnoYSzdfTdzU8hN0mM8u.CG337gsTKJ3pwY4lXqwOY1UAxA1eR21','user','ak_c7253b6b1c32d272','2023-10-05 10:11: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=11995;

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


