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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$MIplbxKMWjgUgBdF8OaQX5RG99SiT8u.yMoP6NvN5ZCMFK2CPP76M','user','ak_e54928f707cd4ee5','2023-10-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$VhKP2fzSBkBydsIMv84uFBhgjRGOPY1Nvw.Ns4ZGbqaEUWK2cVKB7','user','ak_74482045b0420fe6','2023-09-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$DxgYNa/Y3LUE2y49.EPu2mnu4zw6IWzpCtwyyLvgM.oAj5GIZk9V/','user','ak_be4757ff60a47db4','2023-12-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$vB4cBgpBSO2lKkaH9g8obcqdCm9kXzgbsViFwlPULpDmd/8G/MZGC','user','ak_45f39d6a97502a56','2023-12-20 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$crGGtnXmMq5u3CmktqR5E4HAK.mOZxw2woeCOAsdq5I5YNLResIR5','user','ak_8a81f6e54e795606','2023-08-23 10:19: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=27073;

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


