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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$v040fekWomtmhCNUvXl1KlK.G0SxI5V1JLAy12bkcJ7LSiy7.1Xjk','admin','ak_2b9a738565bc4103','2023-12-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$oJ2NlgYf894m67IH4QafkeCinGaNIR6AXuLfwNxqnl8FxiWH6At5.','user','ak_eda35d93c3b943dd','2023-06-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$QkWDO.PwkRD.e6kILBQ7lJkj7al7vK6Ouqpb3Acbcfj5qjbjsjpHR','admin','ak_d69c57ba7dc94222','2023-03-24 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$I5dqYKpT0mVmWDeGz8p9IlzitgvfDCYSQRd.IAuMHxF1rwh9C4GrZ','user','ak_14c39d0b67b48ed0','2023-04-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$1iW9E1hooJRix77s4RVezc0OZtYVzgjvIfDrYi2VQK9eJtZGDkrG5','user','ak_ca8009b6f26b4e2e','2023-02-23 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$iSQ97lBsCBlzAQs0YfGF5SIlizp3fID2YGiGRivqqUBJWiPqT2GYa','admin','ak_9e39f87ccf20dbce','2023-11-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=44391;

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


