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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$nxkJGdGEDqY3/NIIiZSNrqh2.XumvhWj994pSgpZI3065MvUuPA1f','admin','ak_5db9b403f61d34e2','2023-12-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$KAl0v.ZENepu46NdEe7wjMcQnywA61.jB7GKEZfePytDzmz.GJoDX','user','ak_c3729816320b6e7e','2023-03-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$63NZgNFO5AV8nnstVJhDnAk7T2C8IB1bX5GPghVcIm5t/kLK9Y8RD','user','ak_1c019bc4d9aadfc8','2023-12-11 10:23: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=35550;

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


