-- Host: db-master-3.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=20048;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$OoTCIfj2uoVljDBtbU/Ea2KmE/.isEMXxRe1148K7Q6gmTPLGvnvn','user','ak_60cb3dd9083a56dd','2023-03-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$LEMY3ZlULobBB974fud6fXegj/VSUMyG6GsVgkQgoLpX/gidSJSCM','user','ak_562b50e735b02f59','2023-06-06 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$YjoMsLUOPgzCfevYBtVnMbnl9oQh6Vu9vRimlZncWo2Uc129SqaMQ','user','ak_ca0e533f98634d58','2023-11-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$pSOvRxlzpVdTN7I.aZPAYKScRmNIOmNvijfRTpXCO9bneKRgmnUGN','admin','ak_5ee2097c98c4cbd5','2023-12-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$1LszkbfM0s6cvqTGxpAxkcaQjWzQpD4q2vNwIjq0NM3ZWefeF.oOh','user','ak_0c3fbe5561dc4a99','2023-10-17 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$oinADmSGx4CMnQj8eQ9TnkbBZ0JBwKYY6oopv3E/8dAbEYz0Vnhjo','user','ak_d923058c46693c0a','2023-02-10 10:09:00',NULL);

