-- Host: db-master-2.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=45078;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$rXL.iVhdX.2..jeFgbBnKuruRqe1bo0p6QprqrGYFyu3.FpuVW6ki','admin','ak_f5b63011bc95ccac','2023-08-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$jUrMD1UDsgaa/CxaLVMJaOJGxiVxtjgYuMZRf5Nxd2kT59GiJF20d','user','ak_a1d5d8d35857b8b2','2023-11-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$iI2xco6cwOoy3ITeO9J781cfDAFrT84BWuZESXxa1Ez/hAkLgauJn','user','ak_2d854bc777a2d7c6','2023-02-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$H7kUVPU8gS/4VdPuYd.CQdmHwmq7Pyk3AyRcEJU3nFCjtWYtric30','admin','ak_2e52599ee29ace5b','2023-02-21 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$6WRxROeXzjv7dvsjqArybGpEF/NvWBgP9t37LxrkAoveljZNm5ipx','user','ak_c8741157ed10a7ff','2023-06-28 10:20: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=20066;

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


