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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$WuWN.Ks8dlajrK5lducnHIMV8WicJPQRhp1s4wu5SWTqzFWEYDVk9','admin','ak_0eb8e2cf58715bf1','2023-02-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$38hDYwG1iexiTpa4LPTyO1L52uHGPvuqZDdIkXbjBlSGot9JLA3Or','admin','ak_a8543df7420670f1','2023-11-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$F3qb/v66ofYctYzb5ujkb9MIIh24WOHgEuq/9L8afAfTl8zkf6t1l','admin','ak_3dade9e8e6925a9e','2023-05-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$wkTKKHuurdPWdpYN6s3Wp6n6jUnAD6uNChBQTdlkUTAJsCOFOrqa5','user','ak_45e7f5b3b52a91ac','2023-05-08 10:12:00',NULL);

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

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


