-- Host: db-master-7.internal    Database: production_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=27296;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$oeivc/RY5BNjuFvdvOfGlHD9Lh7ouc8ToEfs38HKmdnvwpQm2ICNN','user','ak_063d43d35653d5fc','2023-10-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$3zeoFt84ZDVAQDSMvJD/5fGR/dJ.jdeUd1EkVXYHypg55DBGuJGYs','admin','ak_6b43ec4aa58db6e4','2023-01-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$dQ952QA0xDgLclYMF8U0ZetJG/6o0QaYFzHRaXhSXnXX4hqWilCbu','user','ak_b98df4224706067c','2023-09-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$K0ZWCZibRpRgKawgUpIJ12.M/1ds52Jf2apt7VEKVYcjS4di8IxJe','user','ak_38b91981205e30ca','2023-02-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Vc56ctrBM50N.yG/I6sTvrejmrfCYLGewkhT67JVy1lSKLpKXNm7S','user','ak_5913d0fb76a4a8d7','2023-06-12 10:21:00',NULL);

