-- Host: db-master-3.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=42439;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$uuSXkaEBWXEI9O0.9OUpS4SoM/6auJmP06HJbstoX33J8zLPGGqH8','admin','ak_a98f7ad9a0b446af','2023-03-28 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$FHhCOgM/CF9dA4FbklA7djY.pWHyt4TwVJKE5DNHCMGz.XYV9SyPH','admin','ak_98c5b35fd8da7e18','2023-07-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$NW6ASXYUrw0VH8AMLxrddxRYkOV5Eyj0rizYf6iq3X1pTujawhzS1','admin','ak_86c3117517a3eb98','2023-04-18 10:21: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=22460;

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


