-- Host: db-master-4.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=3169;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$dHAFBN2RXRZpG8w/cukHq4VO/LEO5KfdihtcssHT975Vgkjv27LFB','user','ak_68abab6d4bde1aa8','2023-04-20 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$d4Q4MJTDfL1psxFB3FITQ/Mq0/izY102nsbRcl1gKBPovZ4JotTt7','admin','ak_cfb9c9fd63b333f7','2023-10-23 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$coQKBEm6EFub7/hKYiDWcKHj6L3yYgauc.R/kbbiJh.cL8zHLW2pa','user','ak_f47717d0c63691e7','2023-05-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Gn4Qtfll/zx4Y4dlzoTEAVkgLhbN4WUMLr74WvwaGAOOylpxGVV5h','user','ak_2a7cf6f5a876c7a0','2023-06-24 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$HuwKFsaxp5ByzG.5LgiyKHyYQnyq8/4VMoO8Ajom9Uv1AjMun48pM','user','ak_d79393fca1168416','2023-12-16 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$tX5/o/aJammZmUUGJNU8NQSru4TPJ35NrMMIyCgdtzYWIAgkTvbzV','user','ak_cd008b68b7feb0a2','2023-01-17 10:19: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=36634;

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


