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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$QwGj5CmN0q2WDPQqBQMFeczn3h3J8G..iL65zWQvop0L8NyiHuX4n','admin','ak_e46c7518977bca19','2023-06-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$b7rsD38DxyCNokPVv4FVKhX.o34PAzmQaUpkp4l6iv84Rmj/UEdri','user','ak_07fe9c6a2d35847a','2023-02-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$iL2n5eCv799vkdfmrU.KMM1GzgdMB918F8F/NJUI07//UwaGSJHhT','user','ak_7518bba3668e2e1e','2023-07-26 10:17: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=37359;

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


