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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$kqtWjlpe/.QMejaMH.FWriBiE/zvZHFzWtVMbMWcoRcbhdU75K/Rb','user','ak_b8afe4491ec49af5','2023-02-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Sc4yYLDr7wAewn.q8E3y2uawrB8UmPW84gxJ9fMPwEMtUx8HzzAwE','user','ak_fe9533c54471d589','2023-06-17 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$O6wJ00QeA1f7M/42ytaHb298tkWSZNg4i109P0emp0.xBnRiHfuOU','admin','ak_8ca434fc6bfeee1f','2023-01-11 10:17: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=43352;

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


