-- Host: db-master-3.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$lRiFGrngUEWs2xMujMSTnxiZUWBm.OwDqTulQN1iy5r.1HMMWDnQP','user','ak_7bd95ec3797ced9a','2023-02-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$j06oljORxRmFV372vXNXt2E.coUM974xIYcGcfM/F58bS9BAHUoOi','user','ak_feda1954aab0a850','2023-10-14 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$3WwHfSJOiCtZENjrXzEVsVrWUO65FcxbDj7KFjiXOYdhJH0NF9B0j','admin','ak_799bb80ffd6f161b','2023-07-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$cUKOK4U3MaIsC5guczFyNL0vVVySCPnjWB/yh4W1CWR3F4e4UUTwC','user','ak_e6ce16708bfc2824','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$f7.KyTpMi4AS3U7EbBUtuMwgAOr9MEK7jAcHEJnhgAvwvs/oSWSY5','user','ak_b6c708945a402494','2023-12-10 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=16922;

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


