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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$VXz5kEEqkwwJH1bmyt9T771E2UlMAxzhwlUYaQC1tHLRbOWNZnm19','admin','ak_15b8dbf7ec24faad','2023-01-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Qjw0g/IeJccDxFiQ.BCDtsKirKYnezr8DAf7GagMuusI7HXrm570n','user','ak_0e961d7ce3f50d36','2023-12-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$QVFE5aEGjUjxrqlvwmQEBBBVkhK7Ve/dmQ0L6fKyCY0lJdyG5kUUE','user','ak_8ea523da77313c61','2023-01-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$csV8MRCUS4.Nqq0gIEGuBxh/nEy2dglWPJJ9b1.GMHn044C9UCZua','admin','ak_cf55b13dd567ec3a','2023-12-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gc1oIkYuQZ66WCNQpKHuNxN7uAIeeKE9Hu/bU5i9iqtFk0u3EdQqs','admin','ak_eddbc536064ea8fa','2023-05-15 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=28134;

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


