-- Host: db-master-1.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$K8tsL3MmtXau4eMFtpX9P6t1hS6AC3bJ0NMsm5nm6eJmksMvDl8Ks','user','ak_b17aa5fd9b8fd511','2023-08-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$MwKHF.zc7a9O3G47mhOUEDz1k6MWF0dOC1gcxKc3VB4OVC4ch8rTB','user','ak_e8641e53732e99cf','2023-10-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$H8.pIGu7.sx28Yqa11HIsUr/COo5CRBtrujSCuxzTd7fpmsecgnjs','user','ak_91ab5c30eb36d301','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Yx/NLybLMcn8aSS.ghMoyi3pz5WQBTrS1HcFXY0rdTgld/gaRUtr1','user','ak_9c520ef38e3fecbf','2023-05-06 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$eAWGfNs.sidrZktuSrfhd/IeXrDjBagXYCr1UJ.K0D6MTZjQWHkzJ','admin','ak_90c40b076908fc7e','2023-01-12 10:19:00',NULL);

