-- Host: db-master-8.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=2952;

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$F4Rl5SSZd2WE5pR/BGz9KgQEm6cHiNKP.A0O9.5vDqYGq1.3eeANu','user','ak_e6ac70bda404c747','2023-03-04 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$JNksRfbv1i2rRnm0zYnHK/UgSf1T0hvkGCuh9V6nLbo2E9OTb5mwM','admin','ak_dcbffa43effedca1','2023-03-18 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$HB7lBRb5bpKUNzA.R72KWHVqr4QLSpF2.vmcYBIX4z76Ltcctddqj','user','ak_2517dc213d301077','2023-08-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$8MeZJ7c1xkFJeK304YLZZIhILlqJH2uag/H113ucvC5YO4J5vxvVh','admin','ak_f349e2f64293b99b','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$OqprPy8LPP4Mt65kA/AFn2P8gesRkZhicNsMe2y2XVsS.HTaKHs7.','user','ak_4b8738318228177b','2023-01-02 10:02:00',NULL);

