-- Host: db-master-2.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=21154;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$kvfJ.HwA42tW7dl03.L/sDh7lYYobw/18qwbtyHm5Tz34VoG8Z1We','admin','ak_48f96db734d536ef','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$F9Z.tKskueNTqaUbXqYJItPgKgIY3/TWAnRaeNAjBXUSWVDlz6bq9','user','ak_3add42d0ee02393c','2023-04-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$E154BUx.bo69YRko8sio.OaXnuA361OVAon4KKqo4XyIKRZ8eEcg2','admin','ak_88e71534c18c702e','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$u8QAH1hdyQlVXbdoSk6ubtJOhvTIyBCyO7UyT5oUfrCwGwiStZJv5','user','ak_12887a1ee0611533','2023-05-08 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$x00in5NRDJYpCLyP50DKLzmODtAR6Tkl5cQX6Lej8LlLwkdIg88IF','user','ak_db8d06ac1a7c7afd','2023-04-04 10:06:00',NULL);

