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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$HdgPj5R2uD4wyKZTEzekGZsd/ry1gU51QxE3JiApEqpVVAKwO6iRR','user','ak_893f0ba04ed07031','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$MS485FFo.bofWbZEbBNQAbegkit0CXbT2OvloEroQ5yluKmYA0z2l','user','ak_b1d96172864119bb','2023-12-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$K1L/ruTutnfd4csH.jYOwCtTaz59sI2oIVNxHUSJ6BzRWx2efnm9V','user','ak_d4178d5529fb5e54','2023-05-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$1Pu7dWqSzdu9CNm8X/7uTWJknzvT2csnoteYdGEZxD5YkVbEFrXFQ','user','ak_85ecb80654ae8fac','2023-08-25 10:03:00',NULL);

