-- Host: db-master-8.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=9740;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$2t7V99RruqgcuyUokgGKn4xoIQhKkF8.3EaH5x4GKExatO0V0ldHi','admin','ak_022b4f1533e2bcbd','2023-07-24 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Evkc3r6w71sQV1g2NwkzO01JRifWcQ7.QA7CLKpmp4LDAW9QbAUUZ','user','ak_c1e30c3e61e60e1d','2023-05-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$BsGcqWZ.6OGOYFq7ULq1fkjXCxVc8UxyWDMQy.Y39ez1x87OJ1UCL','user','ak_ecf9b2ec3d8b3265','2023-07-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$iEIF4qJL.LCXSfMtOkKFgPEM6nGkNIAnpQWlezokH3zUNKmRJBrg9','admin','ak_05f21cd5214b40cf','2023-05-23 10:12: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=21419;

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


