-- Host: db-master-3.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$EGqyYJW9ZLtfW55W83TSa08p8/IVeOwZMd6OQyk4f/BLXvz8qjjeC','user','ak_794e3f605ffef511','2023-08-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$djFqD7ZPIkEfA.29Q6xdD..zCQsAEmwob9qgVqnd0eePgy9mxVJ04','user','ak_4ddbfb59ab034f74','2023-01-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$gRgzKfZLuyjRGCP069NjymXO2jNto4nuykERrYy3l8Kh/XMvxzEU9','admin','ak_d40489665c04503f','2023-05-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$BfXgPK8EgLFyk08LNhyZYpBsR1vU25H1jLKJOiEtMdaWTST5DZ3uD','user','ak_5a91077797ddbcac','2023-03-25 10:22:00',NULL);

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

--
-- Dumping data for table `products`
--


