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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$6iBnNVnLfJahkGFfBiVw5gNwM5ODLktibUa06qXPh0FTT/JTTozrx','user','ak_6f52e2e0fa4236b8','2023-09-18 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$hOgkVfDsWw8BgQTJPWOpo.qxCk8stWb3U.3JQ4ow0TfMHOaofqynT','user','ak_10611388414edf16','2023-05-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$GIHVi2EFPF1EKsUdlyF1JdiQbxxY5sBYUjH/e7dn82uavNZTCYtq6','user','ak_c60856c3cec2b19e','2023-02-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$fKwcufe9oz4.OTGhb7QAuRx.U62uFz0FD8sC8Tj.aIK6sOJlv8O63','user','ak_ffe24ce43bd69858','2023-10-14 10:05:00',NULL);

