-- Host: db-master-4.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=30661;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$dRaNepjvB20yRz0bPnB8DY/1//tF0xjrCB2GsEtDad.YJ9oaW0Erz','admin','ak_42ea9acf049ee61b','2023-11-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$h3AKl9R.VzYrmIlTwKXpfv7qGZvEsxIEW9byCSwGvL2518hbjYm5x','admin','ak_3ec095c509e6deb7','2023-03-20 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$DY8WdAwCFkv1OjtovydXJo8b93fjuZMHyj1nquyBvaT4FIX/lgYce','admin','ak_0a5aede37b00451c','2023-04-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$i5InjLVWEMbbeeXGY4OZ0vWej9ajQu835ZLGSu3xaj/Sn7YGwYsm8','user','ak_580d92a080a7e6be','2023-02-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$cZav/UASF3hNSQee52gGJful83vqWdFMbaxHx7AeqJFHKaftgHkjF','user','ak_9646db059dc7356f','2023-09-16 10:01: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=29427;

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


