-- Host: db-master-6.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=47616;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$K.UMwJuOdGGQSls/JglOVvfNzPrVIsJWBAss86hbz/ywk3mcQPdQI','user','ak_f4473801b78746b8','2023-12-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$mZbRHIu5ryQvHldQw2SR5fRzx3HOqMskS4OB5A.D7am26UkXBdIAc','admin','ak_89029692a9e4a9bf','2023-04-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$zgXAoDVZ9W/GFHrQsDfBIK7.iTudYzYSm10XFt5Hb7p5QTfsm63Ef','user','ak_786b8475128e4e21','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$qGH5Lk0f55TMz8ILY6bwivQFt2drPCRwLEPz8FvHj8LNSi/GVlryX','user','ak_26a322e22f04e89e','2023-07-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$AHUXRnmtd9nRztcDcLx705qVRid.1pehrcpd.33aX8Bqkf3A86s.q','user','ak_13726fd819d2ca2b','2023-11-10 10:18: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=46949;

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


