-- Host: db-master-9.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$BpLQUafNeAOU59L9xGROYgGNpNfkkZ.N1QNzmbHaP9q0fDeh7.c0z','admin','ak_fde2567516783152','2023-05-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$lIj3Cx2JRlfJ2dzilnZUzzfxKUbrBt1ytd8XtrjswYvEsb9C43J5I','admin','ak_5f037c64d7e54669','2023-12-28 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$iDOdUuMOuEWBgK1TmpYskY51j6NjvifdBB6KJ/YNYo.E367ie36ZJ','user','ak_9a251356762f1c9c','2023-02-21 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$l9XoiwF5spk7qH7kqWfoiUFF4MvHm7Gsl69EpqQyy6QU25zbiJNxt','admin','ak_c682e1e203b4b1cf','2023-02-07 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$P/XaYa/HIdtXvyb5HfqZPuepZTnvAHe86gBTPV48shuEg6R6gYjF6','user','ak_6b4f49bcab2b3752','2023-01-03 10:14: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=11957;

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


