-- Host: db-master-0.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=28005;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$6LpUUCL7hzV7xHgr2qHrSOia2eFeblg9aYF9gYE2oZXon9Hv2bzfi','admin','ak_5cc007e3143f14e5','2023-11-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$WxjkzvTHf0EoQ31/bxDgushzXuZdO5X9omgrQQBq1nMXD7YN741AD','user','ak_a22a37608e0f3209','2023-09-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$qtXgMq4VB5zAP58vwNLltg6/ETTYJ.nRpWrnmOMkswgTXiifYW0sy','user','ak_6f728182a996a922','2023-03-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$WQf6ZvR8IQwwILaXfUJBVjLsmHwUu2A/sJ4q1Ba.P50wPu4oR6nJa','admin','ak_e8b0e0a04240f128','2023-07-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$7Y/eV2j0Ru6dvq/rIaQWtSN7Kv41eWPzNbzrXBGqw5Oe0Aj/fztB/','admin','ak_ffb462351b566115','2023-09-17 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$bdkC8ujPMVW49bdMJNxu1.iq83N6Q0VWm8jY/LtYY3DbRk.l2oEMV','user','ak_6b5b85c788815bc8','2023-08-08 10:10: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=1957;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=31303;

--
-- Dumping data for table `sessions`
--


