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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$MWG26xhR0p1gjp75w4sYQh1Fu30Xf8Gamro3bZbwOpOzqZHlcxvsO','user','ak_0500b9a677f0c6b9','2023-03-13 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$AUpEiiOdUnNV92fb8vHJBYlFygJCkG0052v/TGFVQt75dR8B4l5Wb','user','ak_e71a3fb65f09b500','2023-11-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$uQlopHMlJYEqJmiE2ZDaxzfnch4.qzVXODDaU5wOmWO8EefAVgxfd','user','ak_5f9313bdd796324f','2023-09-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$iGeNdAORkNHzfXIQ9bCif1PjKKGQ.Xdq7ytWHIeHehiuDMz1gDGFJ','user','ak_13af1dac846a5844','2023-07-05 10:14: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=6647;

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


