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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Ag63Aj4WogqIIXcgf.OVDjwSwNqhmi5zXOyUL7xkKqFAOrpC2A3WO','user','ak_05bb33322974b9ec','2023-10-02 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Nb1DDpdxCdNYnBxNM6tMJ6IJEEP.2XsK.QByM8S7dUOnBtGVrEHZo','user','ak_cadaf00001ce91e6','2023-09-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$5I6CZPe7eMNReXd795p/qwYp6DoSnpHAVOZWUVS7Da8GAbynj9/TY','user','ak_93d923877e684e24','2023-10-15 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$mVF1fPL1ZMi76ettaV3YI2pTHmtnm2VX7Qo//.FNLIDyk1GfyX8CV','user','ak_4c65e5c17d54ba74','2023-09-26 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$FrlDe/n6CazkXzLOLNBTG0Sy94s10eSNV5gET5jvGvDYRxKP8Idx9','user','ak_8b1e6c022cc78500','2023-08-18 10:13:00',NULL);

