-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$dP4Z/Rpss6wkelqcwM4ABuQ3GLu6LjxaJdwBb9tsomJAPDmUsmAji','user','ak_343e7f8be2b2f78e','2023-04-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$1/sjbhmmRofKdli.VGUfFjkAmzr5KZBJpmvCfV5l/LOJDgTaSoZT5','user','ak_4a4dbd05cb6033f3','2023-05-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$AdPc60lU33S2QJFhtqKGuzCe/oaqV4foZnkLGTKVqInS1.iwtG0Bi','admin','ak_dfd2bc694cf3282e','2023-08-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$wgwrmbFSIt88zPduKwqw9w7GqfXxGjJSnZNtt5r6QNN7BqHxcJw7x','user','ak_8abefd7b0c62a61c','2023-02-27 10:17: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=41238;

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


