-- Host: db-master-9.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=2717;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Bzmb5rwR.ZRaAtaBfeu3XJC7F8Ev/k0DCWrJQMu8UZe5Xdcvffk88','user','ak_5ff968b1ff220d64','2023-09-18 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$QsjJxEAXInMpomiu7yYCZeXvaFcsopWCOQH7abub3TEqybgYnaDx3','user','ak_3d411b3cd4c4b1a1','2023-03-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$IX/SrDLtIbqO6UCCWSkPChc2HeNe/I0iuI9rQemIWcyvVe/IXBShs','admin','ak_347de9609e55aea8','2023-04-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3AN6v9Ca86.F0V1KJYf79q1Oa.K9vt59TFlK506NZQDHRhgIj6s88','user','ak_3e9f10a83a526da1','2023-08-28 10:22: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=17603;

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


