-- Host: db-master-4.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=39432;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$HRf1iBzTWh5x5Li6Fguug//lyq9NJ0/E4uP5JUEW9307hXnJE/d4D','admin','ak_049aa5269bd0ff98','2023-01-04 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$cSW9o8u4aU5Bw1m6.nqQtlbSdQoq1.VN/pUAqGJjCTnJ2RhrnLIzg','admin','ak_a8807e7c4abf9d3d','2023-06-03 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$FoOzoQxPtmppfc3XEmlEkI3qTf7MhOKSAc4vanwtfq.AUz0PEcL6m','user','ak_a726881ec5896e4b','2023-04-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$gxTsPK9bNFznIKXOzq5lcXFdObXLSF616IfO9EtgG6Phv8bwtYess','user','ak_9dee046c38a4e425','2023-12-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$WSUXni6e6dOlW5M6K64ATYn9n7SjPWl.9HMvSDefyl4dU5z4.WLyx','user','ak_6c2d0e37853ef5a4','2023-07-20 10:23:00',NULL);

