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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$vD6W1ZQOUfq30E/XFaq2K3l8YC2abv/nt2XAROsH5i73rC1JDjqR0','user','ak_3ed32c3d047863f5','2023-07-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$shP9mUzCM6JCc9eoFOet5kyNF5QqY4.WHYbzUiZLbUPx3dDTRWppS','user','ak_91a11c831db2811e','2023-08-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$u1uURFDnAE60440dFDXsIjV89Xgjaq8axxZM5qxwsSC45.uLhZTce','admin','ak_3de833c7ca4da52b','2023-02-06 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ctdVtG23vpIhCohL7WCxTp.VuSB4W91B6yl6f7jjRbRhUZPTvVZhD','admin','ak_309f25ff95f64c5a','2023-03-21 10:07: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=6095;

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


