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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$KquXidyfXqba3FdCYlZM.2I657TEiUJKzdOSGUwDjJMGVY22dWFQf','admin','ak_8573372c0b2c2b44','2023-09-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$WIAqNNZnPqXtWhMgiihSmYYIDfX80DcLsGgXMf21B5lgEK57t6tPJ','admin','ak_e8aed23b70d23696','2023-11-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$/ygDnnpwvb8dHOoG5i6x6OuIB2GX7p9KNlawtppmzYQe8JQ7Ljl3d','user','ak_1623356a9dc8209c','2023-08-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$8jNJmemLPc3tLGDMXR1zYy0X.OjUA6bMIRvgS8/.90SQJM6XQZJGc','user','ak_2d0dd289becb7c2a','2023-08-25 10:00:00',NULL);

