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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$LtlNdh3iQzPR07PAOEvfe7muTmBrfEtkjI.lNhdsjI2nnHVjUba83','user','ak_4239c3a184004a8c','2023-05-27 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$h4RAfwT1EVmTbjBwuUZCo3o7pp2WYAIlicPf702HUzSR8l./WQVhs','admin','ak_95f8f219be3f8768','2023-02-07 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$z2tJzBkibl4zytYpqOMFgUImKMB6uojp5Ternv5BjBdDv8WP0K8y/','user','ak_89343d77e785eb11','2023-03-19 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$MqkkztTouAgvXPW4.n0C6nSLhtcfSbQhq8oBNeH2jSeJw5WzFBmQS','admin','ak_1c0536fb4892a1cc','2023-12-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$4gScocxjqX/oHnVgPXnY49DlTa5aaJ3EcAtj8zqOY/UgJxfYrDBWL','user','ak_f67f14596b6b1037','2023-09-14 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$5GjmCLMt3bHjlkgXhSljG77FeBhwBqxkgIQ8BveffRhOlgubEs2gm','admin','ak_c2721fda02931fb2','2023-09-08 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=26807;

--
-- Dumping data for table `products`
--


