-- Host: db-master-3.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=36581;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$n8Ep2OFp2Et1smZAD4ROcyh6cWmuVdIPTYBMjkLxMawyu2VOqRgkz','user','ak_1822c5699c41ea0c','2023-11-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$tGazkNJCOUuuQwEgjA.fP43Kn63ZYRJy2knbxB9GGBvmhCBE9RtcP','user','ak_27946d00fa357c38','2023-11-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$vLlni5Erd7h1e88Q/lfSO5UqdCA7FNKjFzZYEAx2dk.J2u/ReeH7f','admin','ak_fd83b3120754e506','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$UZfNdIJv9Sywluw38hNGhYt.rwRayFfIWsm7NHCc2QseiXGTNJXpH','user','ak_bb5c912558617ed4','2023-04-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$KJAWMCshH0XLY.MPBC6by7kPeUdDu0mBehAjsli30hXeswYKhbihn','user','ak_d657abf15cd7ef3f','2023-02-27 10:15: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=14980;

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


