-- Host: db-master-0.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=37766;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$rLvd8N9tAHFNlgbw/oWte9K4BywnAoS2TR5Kv6q.nuEM5uxT5z5.K','user','ak_92c7d7d489650aa9','2023-02-26 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$jWXV9NMfZP60lbGSECu/4ahBQDwwomCBw3loJedKsVCVE/fgqM1x4','admin','ak_53b68f75671b39cc','2023-09-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$GRF1T2DaXK0BRqf9A6HnFvDIdtzZH5kC8514o5zZNkZpi8NP7r7se','user','ak_d45ba57d3935b9b9','2023-01-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$cLeXDPT/OBmfypO9Xa3zDcraRA1AUEbqWA/D75rzywSvjt4PAK7QA','admin','ak_02aef6001c184629','2023-05-20 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$7yfy9qykZMlicjG7l30TtgQ8sdCpY6fxQA/BT5R9GEtEfgRS6/R9a','admin','ak_f3c4200e26987c79','2023-03-26 10:16:00',NULL);

