-- Host: db-master-5.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=49881;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$qxcnqRKUlq1mD0SyIwAOHyLlOL5Ak9MZzrWwyQN9HtOZgCc4LD0Hg','user','ak_7de81407078f4d4c','2023-02-02 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$1Ki/i/zjuuWpwtT/siD63M3MCw/GDZy9rkxbx5OTqeW4RhwxragTJ','admin','ak_0596863b23301264','2023-09-23 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$75fcoiFcEZQJZt7JWEnd9fH93wRpI9Gbdwwo6gX5AC/wl93rzSPI7','admin','ak_9007e967635cb047','2023-12-02 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$sU/KLCD3tM5201kDWVlKpK5VDAOcNUSJ2Tk/Tn.d/fineqA/C08ni','user','ak_9d0608ae7a166832','2023-07-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$5SyuNK6inoKBEV5W2jYqOUzAEbXpuaIieKMaOxdmhDQxb.eSp7GH1','user','ak_c82940dfe44b7008','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$MGj9hPyvYFGWthYdpqk4DOQhjRJp1ojkpnVdSWm938jYMAzo.CYx1','user','ak_f8e80975f22f00bd','2023-10-04 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$ngQeB8bUD9xxc.HTITiT46Xw/U3yqprylWyV86b06.hvPyyVi57J6','admin','ak_d0ee65601e5ded04','2023-06-12 10:15: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=19852;

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


