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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ZhntRsD1IFBHrj/lbRl2nSYiI7M5qO3wcVmnZ2rr0qJrdr8i9XgkA','user','ak_23b7a1e68aa7952a','2023-05-03 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$5lKJhSPcvDQdc8NWOIsaugkUUHf0j/ZAEGJboFVYYWH.POeFhEmIg','user','ak_ab4f6d12d31bda18','2023-09-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$nSYpzkCsEdRucjeU8fZHY0zsxmN33zlBZAWXWUGY1Jp2XcCNuCEVn','user','ak_b606786218044e68','2023-11-10 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$lBiUAudizax6B03kpG7DuMpYuSooPcWOfF.bvw9EcVC7Vof5sQfD.','user','ak_ca76f7f5abfa5bff','2023-06-28 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$yVQ0udyhtsCbBYQ9sLTl.elTlQb7PRul0Xm1JNm/x/JRjOOwckgMO','user','ak_b09d819079d6e407','2023-05-19 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=39169;

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


