-- Host: db-master-5.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=23071;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$jndv6H/S.xQ4evcBHdbvpdYjxKC1OrDWxQO3Kg7vRWLtF/DzLguXh','user','ak_ffbf7ac1465a2b9a','2023-01-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$cZ9R7Wx8qXf40MHb.dXOpca9OtmgD8HwZYFPAIt4Lx0vj53cu3t5o','user','ak_60ffb75432998474','2023-02-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$COCBUTBYQcvSDdqF2sS//Ru6xvMnYl6FBRsnWhO.tRo.3Yj53vh.t','admin','ak_15a4baaf1efd0f18','2023-08-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$IuWrEDDDh4V2a3v.BNlYD53SKEOT3iHmshjqJ156O5RTY2Wi1QU66','user','ak_1fe519230bad83c4','2023-06-21 10:23: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=1881;

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


