-- Host: db-master-1.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=42832;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$XE7jYaKT/WL8BuWYdl38W07yGrIk4duZ7zkUFVrjkDaEEaCBTIQzm','user','ak_ab03a1df75520d52','2023-06-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$czFSk7NMVsGT5SsI82VP59Nyx3bkTSOkttAxyxxSYM60Yfjpf0TlS','admin','ak_deba919b2cb99a44','2023-03-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$18S1AMLiCvQbBLvDwdIKtF22ZUpnwdxpbWiG5HaDnG98uJn2UxdHB','user','ak_1453ed342943ce8a','2023-09-07 10:06:00',NULL);

