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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$JOBDCSV65I3/jFcO3fg1yTlB8ZvFhfabo7tAMr6JZQx6PS7DFUvZ.','user','ak_f6557cc82a9c6da8','2023-10-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$2L1z6yQS/PTETyYyIHvu4NngFKf8m6TC/fcdvJ7V06l/NySy3IA6c','admin','ak_7403c6a5f8c01345','2023-08-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$rnmkj1FNRASRiJ3wAWZtOdG5G9lKxlI1ZsMEvbe./HlPBQvEvvvrK','admin','ak_f5b3e0892e4db59d','2023-05-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$B4HrfPLA2J7d3U/shv9eiCzkl2lDfbHFZTMI4qeLcvFRWgX1iHMgz','user','ak_eab85f21a7701e47','2023-08-20 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$r.CW.7GT63IgYs/yoFKEZMwSr/OQ4iU6TpWzDvslBmn0DbE1jFpnm','admin','ak_74a9fddc48738235','2023-02-11 10:22: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=33194;

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


