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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$dHqWvyK8SXHscx0I3oO8MSOyjrqoowbJqAdTYX6GEWjdkWn5sWsX6','user','ak_a01b8d2731321e52','2023-01-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$89vdf18kdiLN6ali8KkxJg5ts2ZJP8N9fV.RLCCYZn9eMG1cZMnNo','user','ak_b7ed2b9cf792cea8','2023-05-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$HZ2pAPPeN/3SgJxmsSMKbAaG9FaAVyyC6jtenE5Way4G3L8/BZo59','admin','ak_df70ff476b643cf4','2023-12-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$dOJK59pSqVJ5TAZO0V7dh2B3752CrhtoN3sprZq8Ck88cdq4eXFDM','admin','ak_e1fc5b927167c230','2023-12-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$IxBWGTRQB3qQmRNTz5sGLLKr6DN115U/1mCs2tPCksOg/ndARO/8j','user','ak_85048a5dc9edf790','2023-08-18 10:04:00',NULL);

