-- Host: db-master-8.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$/L5DfP6AfVrBQy8YWgqSaRxYKqhxvqBpAJEkfGbITmA.V1ia5rbYs','admin','ak_44ffdde6cc0cbefb','2023-09-23 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kp2yM/PhuoUB7UPOWuq0R46QgAn9Fcyy4/UPsp5EPQpb3LGmSGG.B','admin','ak_e2aa83349af44ec9','2023-02-17 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$FV1GTPyleWM8WIT9mPl91xg0UMJ6S23v7WAwty2wvN0uJKZbMGew9','user','ak_4c02df14f51c9560','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$GqTF5EC4AZ0twCrxg8QAbT2qLMV0zzLGbZvJAHYM/FqpdiZaiJdsT','user','ak_cb09dc84e6d2ba3d','2023-05-25 10:15:00',NULL);

