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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ePvnp33pdKSwtZiYcejyqq697R0s/yHreeJnJmSFbIULmjkJ05ASt','admin','ak_74d1439c0a2c705c','2023-08-11 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$ySwbW.l0nSiYo8HQcBZIX.4nSkrm0JLZD54wQ8Qq6e6dw.5LafV.L','admin','ak_e00cc1d0967f1f4b','2023-08-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$BnOK9RYKu6mJz934c0HHPGrfrXt9iPiQbJfLnXZju9qOk.AwbQ5eb','user','ak_8dff48e7bbf09de1','2023-12-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$2G3vXe8MxBikfpvcWWMGx00.0TAk4l6ubtFCYh.OWBP6Waopxs6yf','user','ak_0d0fa970ed4b6c1f','2023-01-08 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$2y18F94zbCRVdHGo/L5n.Oc4cMcY6lC/poSk4D.pNGc2ldCP.wpYB','user','ak_7d0d35bbe8160ee8','2023-04-16 10:18:00',NULL);

