-- Host: db-master-2.internal    Database: customers


--
-- 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=40813;

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


--
-- 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=25959;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$hlKujrxjqXX2DZgw4.sRAOikQsJzRi2kGkIfEFBW5KbVwaixq3Irj','user','ak_c9cfe7e65c60a4a4','2023-06-08 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$2wpxF3kuatqUCQC5AmvetTY2OdiOniZdOFDEKjmYbWPi0rxUtLvWi','admin','ak_5451a01f8bfb49f6','2023-03-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$brqwU2ky11sfkUMElVV/EdlEqklNU.zzpASzVm/C38CgHZI7R3y7g','user','ak_ccd3858b8625eaf8','2023-05-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$p8Tmo7mdpA0JP2DLGaWAFVdrVc7B1tBatKWfc2n5Y9dQuLzjII/Vy','user','ak_2ff49a9c7ba56473','2023-12-15 10:19:00',NULL);

