-- Host: db-master-2.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=30843;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$26kUEIO1RMjC/a9/jlFRKUAxY7vBiXyWSY6ZZayavwgGNcBqspToC','user','ak_53b758799a2695b5','2023-07-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$STl02mS8fMf4KUn1foYeCG.f0D9KFF/5BNw4UAAldurbeSmqxKh0Q','user','ak_37489841aa6dd0f6','2023-05-24 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$6NQwxQT7wDSTW2vU3z0MbqRYZlfZeQOY9EKVpN4niUWf6P9ucY3BB','admin','ak_2e3f22441fd7770e','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$XeKVpkWV.j0oeDBAgm1YGFBipZGsyFAHndg9tm2Slb4WeA02Z7YXe','admin','ak_89e5a24e214943f9','2023-03-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$HM5kygm.GwN53YUt5qhVx7I34R38fqNn8Iy5ilxoKro5ZLuBbmkr6','user','ak_a7cf99d3950d5285','2023-12-10 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=10396;

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


