-- Host: db-master-2.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=34066;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$d7S3/nanvPA82KP5zdWF2SqQTW61Cu.nBpnXh/I0RChDVtNFg68iY','user','ak_8bdd5301c36243db','2023-12-08 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$ljednNNeg7cVmEtpZa5UDTlfmdEr1RnujdJaOZx9amWaPY.tsSJuX','admin','ak_c0357dde4910b39b','2023-12-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$9aB66sycfQDGf4lNDOReBK18aY4RJi6Lf9VKFAeVfS9iEGnh0JwJi','admin','ak_6521f3038ac47045','2023-09-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$AODL8DP8Gzuk8fDXih6xndNClsv1vHeyxCu8akhJD7OoKD2Gm/jnO','user','ak_9507c2b6ec2f8072','2023-12-01 10:05:00',NULL);

