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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$Trmtsz5zHdBPHu8EbZiLVHOicT0jtVATPTBK/TuERBpDXd40Q5Xs2','user','ak_b17b9e1500435fea','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$njKHDq7EN0x.0Ey5yAqrTtC/XWxWH4Ew3d22ggdhmZQiTo4aGMAXl','user','ak_72363164de1adaeb','2023-11-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$EeiBsrdZtQITMs.TuLcU3sICUjCjAQs0/4KAA/j1B6M8eZ/bHm1oH','user','ak_846ad6c75f67da5f','2023-06-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$9yMOuQWup0VKORAWOO5/v4kHqtBXYSS/qN.wqWqxS6V5gtsMvqdKT','user','ak_e3bc16dc73a03a71','2023-02-04 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$ANcDgVp2UYFfDGBEbj/sDRXYfQtFFk5boOkpmwGdio.ylv7vUX5aS','admin','ak_2323aa35b17363e8','2023-10-25 10:16: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=46023;

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


