-- Host: db-master-6.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=44992;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$mEGxKld5c.nJipxV1wYQKPwUNYYAFG6QkyIfTQTIesjp1g6rMdaPr','user','ak_b7a379db21bd22db','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$eI/AOcnk58zmvmOvcvWmU/yavx61uwx80YWL536eq.lvCc3nStW39','user','ak_d89ee16baa41666e','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$wXFUesBFCzUw8RvsI7yKhRb9SdrJFC8/W6f7EP8WoqPtdjudN.nEH','user','ak_9f2c7b27fb9d04ac','2023-05-11 10:13:00',NULL);

