-- Host: db-master-3.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=12613;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$YkeXFaSwiA648VVzRd.s0MTtrwMWNSQGFb9dQZmQuXg.UMFRo76Y8','user','ak_addea2cde1f4cbf3','2023-10-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$HPjoRkCnZq1snsXJ.owvEkkyUM9GUWXXh1toVmwKUnb1O6amv1t0D','user','ak_514a0fbdd6c55b60','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$GZlOeB76esbWk3fjq2q36xMbA90KAVyhUn6oiy1SYwVYfiMgNNAOM','user','ak_5c44c60c0ab5da32','2023-09-15 10:15: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=47147;

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


