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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$/RIRPiFGvN7WmnqIM8oO.VYwbb6YG7vZylLmrY7fbc5zO8bPvIEXr','user','ak_ba5856ff6c7c60e7','2023-07-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$42w6Oq2w2LOeOEh2FQlU8xrxapOX5HTUzajBRt16wXCFm/6ZVuunk','user','ak_ccc0b7bf0d7d1125','2023-06-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$YI/vyFWaIzRXiYn1vrlK0Q4PY1.UFP4FbEsZ1xAmdvL8W6F04u9FP','user','ak_08c379851b1445f1','2023-10-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Aa6rpbHkG.maw4tF1rXsS07xqDLD/Nuk68H.aTwwIFug4R/nRp.Ku','user','ak_3de2796dac232de9','2023-04-07 10:07:00',NULL);

