-- Host: db-master-9.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=49566;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$Bs/nPY3KlZt.KbHo2dm5dSDWK1o.yZAoPPhrjvg/3SUlRylFtkz8h','user','ak_fa07184b470cd449','2023-07-24 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$x6ofomT131aOboRSsZOnObuq6LiZRtaT2oi7kErkJOT4B1LBPi1HN','admin','ak_ac8b59c0f0f35966','2023-12-16 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$uQuF3LkmRjY8RK3Ic7aPOkxGAJOKCfscrClseLeenz11tn9Pk9njK','user','ak_5ed2b7d8f38c9b8d','2023-11-24 10:10:00',NULL);

