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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$y8nDTqCPXV63hDTIHN8ID./fRXFGZPRNwnjg.6hKRX3/SHh8JinPw','user','ak_56731427973e0bf5','2023-09-27 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$L822k/Gc8n3LuitZMQ2HKR2aN4Qq8gpsyRs8/O2ADttNXTQ6LYPQq','user','ak_0cb0f980ff283ee5','2023-10-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$16CIoszC6S7LdsFIFg50wcszY6S.bvxRfGRvYKyHKEvCpjSKK7uuY','user','ak_91e453ec024dfbe9','2023-10-05 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$Eh5s8BKin1c1Ne5rcUeLznlzbHLvHtk4cd5dW5GQuj5/qzQoBeqUK','user','ak_e854f5e41b123b84','2023-02-27 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$7.yP4nxqhQMnsww8cpIZ9YVOOY3/pGjQqvfXVDDlH3tB4FWY80AsW','admin','ak_1d0b35944e46ef30','2023-10-23 10:01:00',NULL);

