-- Host: db-master-3.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=34881;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$26QjhnWcufIetps0bavRGd1qk6q1CWq2DZrTTY7dLvFyyJxoiAUnM','user','ak_e3feb878e13a68b4','2023-06-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$wi8Ir2Ok9QScg0HV5KwJlaiQxhs9hG7o3pfRefadYpS3xIFWUQnV8','user','ak_a197b0061a2f40cc','2023-04-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$QwZu2HZDlH5mS5fvZ5pxColPqcGXcLs.Qq8fLRZdI6djQQIwmnU2j','user','ak_3802f2953bbe4e92','2023-03-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ni93SqO/aRwheqmLDFcTisJjWKFbJTUVk61F83F.OVWzOdhSInrkZ','user','ak_d6cff5a91d622d87','2023-07-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$2hlY.AlzQcQHiTMvQKbOOqEa0lm1z/HBpFEyUS67hDCzhgj1mzbqS','user','ak_ba2235160a2e8930','2023-10-06 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$zufsqt0niJ8tbtScubvAzHsOlf2PZjZiDURsvtZhOj24l2/dzB9xg','user','ak_cf474493e53fd8b6','2023-10-15 10:20: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=4090;

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


