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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Sao6YINZOOa8DTI9ClQ5CZQBb1mlnrFj4RDnweRUXHUGMtzP4kWdk','user','ak_3687fcba22739b77','2023-07-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$KK8KNdlk71No//8dehFOdZCH/pixMhwMluJq9iW1pgEQNw2Up1eH/','user','ak_6b1f0109a7ea24cc','2023-09-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$4jW47xEXexZmjYGkzOgz9/rweiNoHtmAFmXAWJpNf0rAKTlAyMW5e','admin','ak_60cad149e4899d4b','2023-04-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$sQS2qHVFY7xLLgBy0Au1Cp.gCbC80R9gjQzaRQC0fC0Iva5kg/6yf','user','ak_e1b503420719bf5c','2023-08-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$bPmbHi4Slul4sQf/DErZlmswvx6.yhB7L5w4zyFxnUIBGWyXBuVD8','admin','ak_b840d1b1f41b741a','2023-06-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$oECFR5yQCbTqf/OCdQsmkDS.gJwN8MIyeygtRK765XkE4vGltDCAs','user','ak_94a7e77b80efe314','2023-03-24 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@corp.net','$2b$12$jwmkGqxzysUj.OS/ON8peT8p1OkAeeLBHKjoRDH0RndT1Ejy27OCW','admin','ak_9d4860b72ae4f967','2023-03-06 10:21:00',NULL);

