-- Host: db-master-5.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=3317;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$QHp.OQNaMeOJerwdkK.61T3HE8XoFrUKoL4UqX/DEI5sv.9WGfaGy','admin','ak_e07f235ac6e3f5c3','2023-05-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$zR6K1WZGvoYfn3xfSDYT1EALqA1enGB6iHae2MltNoKgZU6/LjZ1i','admin','ak_1e5a71a6fc52a806','2023-03-01 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$zgkSQzHMoV8AJ/nO0s9.A3y3G8mSG/DgvJfROga2K8V3qCyTv7G.Z','user','ak_771e755c140de3a1','2023-03-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$QrknN3NVOxRTObI.6pRuTq2mbqJwH7QGP4e7SKfxI1Rba00qxzZN1','user','ak_3bf4c89fddde3d20','2023-08-18 10:22:00',NULL);

