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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$1wjq32Z8YyX1Le8S66RiJ9UTJwKe7nNECtqc1Jf65L2KKViX1f835','user','ak_723b1edecae54ba6','2023-04-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$rGTnLg2hHLs8/9udrt7d/IJRwr327JwOQ5v39i9NL0ZAIWUgiZLEp','user','ak_4af7d059e598db29','2023-01-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$4/x1oLDLv3s59MhSmY4lfjollkjQjMNVlchrBTdyOQRJ.jK3eIxGz','admin','ak_f00359eea703fa3b','2023-06-07 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$nUwR8ItHAt2sO1Or6RdlbEr7mGTyMzTqiidibQ5QfMEv8kpw1qeZf','user','ak_9665466660009913','2023-11-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$2LqhPPeX2OYZ9aE4kITfD1nGJVO6EtFlUOOC0N2ej1zEApLoOc9yU','user','ak_a8502660d3140e5d','2023-07-28 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$QWYN7TJvoticZwF2Q34NwLeNCQNhB2ezkFCsXpipOQJ/LUxc7LjPh','user','ak_808cc99e1a576f74','2023-01-08 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=10229;

--
-- Dumping data for table `products`
--


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

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


