-- Host: db-master-9.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=16963;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$XCd6kvXhTP6sErJQCFH3kVQPriXM0c8Cdnu4FPOZSdo.zihKlk9cd','admin','ak_65fa17d684e72309','2023-10-08 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$b5dBcBONxPnbjT9gPHvB0BBxvPP.KN9YmFjUOoxduYFfl.OZ3VBcK','admin','ak_f7356f27d64d2092','2023-05-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$HoRze2KhUxwDJST85vJ6/PC22On53krfY82xEnvU/Bvb.JyxSLmoC','user','ak_929caec9d7eb24d7','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$PrQFqgac0RhtG.FEOgyICzOm6VQjXAos8hXZX.8Ub6Y8nGNARqJNX','user','ak_7fe1505294836f74','2023-04-26 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$eUBvMnXGkExpUsyb9bYBFdZctGB8s9qx5e/Vsb.6.Jx3KYRwFW29v','admin','ak_a0e30d1db0723542','2023-08-10 10:09:00',NULL);

