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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$eZTEuO/XJovhTne.PWwPd9giVop0tboN8ad8WOo.IJGc7o8AOY3my','user','ak_2891e169fe58f878','2023-04-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$9ZrEalsr7JsWUCvE/lzBbSFJk/m3/d86uNYpwpen711MfihtwpbPy','user','ak_146ef27c04562f96','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$y4Q6V1ELvm.pPfLxXug3sw3ambZ1KHkol/BQ5pc4/wBy4/RqdXJpV','admin','ak_36b477fb91bb12af','2023-10-04 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$mo2s4CfumR9Pb8fRlD9/nWzmTWzOmiP3/Y4Y8qstmI62W7vWogRHZ','user','ak_a4a5c00fdf258be7','2023-07-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$z6X80ydZ0v6OIQJuy6gGLwkbcwpZaH9B1I9rHkbVyMp1TuyJVuGMJ','user','ak_8e3d9c4c30a89c55','2023-09-07 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$w0dvX2rAfrpqwUH5b1lXD2NOtrwUkoIT.7ybIwLXLY6Dd9WjIJsj8','user','ak_c7b7bcaa51b49da3','2023-06-01 10:22:00',NULL);

