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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ZrWMVrYbW/9xQlwUSpC6t63g4KdauDOBQTlDCSkDWiAzCyfy7H9H/','user','ak_74fc0829d254590d','2023-01-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$5fkVuANBOqeWbtenn3wGtxIu57YP8NtoHw.Cy2RHo6Jn2gM7iEEBz','user','ak_7922b91c4a161cea','2023-08-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$i4L9m0yTLv64imrbXBM4psRcM4bCWdWzwFKvSBT8t38hzWBAncbyD','user','ak_550d41847e23f8e2','2023-02-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$CeOoORUQWlSznsHi26tQXe/crDFxcNGrazT1yYUqdGlbtGgXQPGS3','user','ak_3e3e45e9340b55ac','2023-07-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$QPLDeOOSp/XKjIGNFk0jN.NBEc9aTSscOODP09iWdEUwmOTKQZfd9','admin','ak_ce9929d2262ff0a8','2023-08-26 10:19: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=11625;

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


