-- Host: db-master-4.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=42255;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$QEKQLY.5OHwAgIr15XjuLvDb13O.BKAVbxdNHW92dPMHhvEgi9da6','admin','ak_54bc72c0945d6e22','2023-04-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$MnL7yUuY66IY2GSZB9chQjwKEtpWK1y0GiBQ1Q4LoAq8LYyEBHX44','user','ak_7633034736020968','2023-08-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$WGVvgsS3DbiEfZEZGYKtSIymHOojUZUeJSmSQ4PYhzCeKvDPpNtCj','admin','ak_b2fea0d62796d768','2023-01-13 10:04:00',NULL);

