-- Host: db-master-0.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=41421;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$kkjx3pQFpnAezEOkmJRsev5dhGgS17CdBTj98J5eYH//bPFoN61sI','user','ak_a40968ea78440412','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$253mv67iN/EMiFXephBdxnnemIdX0vU8alOjnf0fEULBy9sXEEDm0','user','ak_d737d562654bcddc','2023-12-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$LiAQ7ZhBjqkD9fbwjEK5KAcel6c96VqnuiOtJfTE79V6dzE3b7vLu','admin','ak_0e047bed6002e2b9','2023-08-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$5oy7FtQ1e5LXF0SwnFAqGO5yFVeWtAY9dRudEKrekimnTSohn4LW2','user','ak_8665e85424a0c991','2023-06-11 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$UVK9tgBqP9p3jEKL3uwlxwu/I8XuV3m5o9FOgW1.i0bTRanidyihZ','user','ak_e921217f33d402f9','2023-08-11 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$xn1f.xpYD5gmCwt8Z7mGEOhU0QWIBw/m0LArgvUj/W1/fVy4XI7wR','user','ak_b8865b832eaae3f8','2023-05-16 10:20:00',NULL);

