-- Host: db-master-0.internal    Database: webapp_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=45079;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$uPoltk8iMI9D5JTzkPMmkoFK4loWHz9cSH4Ze4bHj7YYOx4CMazFZ','user','ak_c134430f419bab3b','2023-10-10 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$OSvrPH7RcDJFoS4rdTeuARO3zNIPb8q.PABJoyQD6zre5NF1QbYKL','user','ak_c34e68fc60ad5c2c','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$xLd.u5kH7sSSBQjTtjLwL/kEhQtiK7MyJ4dvFNfNuG5PBgTWn4Or2','admin','ak_309cfe9d8eeca35e','2023-06-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$zoUMq5jBWwDRKNVIAwx2BbjteCyrz.MQ0lE3Gcr14LiIMkpUz1EHS','user','ak_6d70bca790cd0921','2023-05-11 10:07:00',NULL);

