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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$lKNhkRrgJJCaLHsh.YZ.kZlqszIQ8IWTBryxTrcw0eCKhXEqJxzzq','admin','ak_021e0a2b24b0090d','2023-04-17 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$cK/hXws.WflpJHSnG8tr0cGtBEac9.UgUeZhCSPzZfuNxN68wf5Mg','user','ak_707eb6b0c03e1e4a','2023-06-01 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$oG86N83hgSBnmdWjro07ZpWgzFa8FRqJI7CdjPOlqCMYONBAOAuTm','user','ak_be3aa40f1da70dc0','2023-10-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$7Kk9WT1mDoJHnSCJU7uc0ybfwKtF9W/9Qf1z8hBEWLffpjWHVEz6f','user','ak_c4d22e9c1e67b3a4','2023-05-11 10:01:00',NULL);

