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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$Dr9RHV4Db7mgSuX.kXjQV53sVUq3bafC6I6IC7TOJZ7h0VhTPOXZt','user','ak_96dbe2ac44ff7134','2023-03-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$Tgc7VQ/3XY1OOmJI.wWfNQfCtyDM1zsSFjg8AnB8xI8ENRhmrUCLV','admin','ak_90c3bf689eba6bb7','2023-07-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$EbOKYYx0KVFRghlWUzg8US2O1aNX4FxTczmowjCku2K6i9q2sf8k4','admin','ak_d3caf78e0092418f','2023-02-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$CNsZCcUQQwweSUCwndydco/VAbcvkEiH3481q5mbw6v/1HUdmJP/h','user','ak_e50cf6eb7c1be365','2023-07-20 10:03: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=48185;

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


