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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$AcoEyejfDAABgb8LffhDinUpIJQvczO0Gm23pjzpfGJVrkKAXNtPY','admin','ak_95d4d4e4c7ee1cba','2023-02-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$XGqifbkMGz.rXl0QqY2PT03KOlIWWUGVR2i.UhEimN2fCBeCSHwaD','user','ak_9cae7e17cb9acb68','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6oB9.nSATqP8zZ8UfSIc3.uGOY29c8vi8t4zsrd8FRV6np9B.ok4Z','admin','ak_ac9e040d708c1558','2023-11-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Le9eApjnkmgX1BLkqqpRgMHsOwmHY5x.El9RR908SjdB3MSXzP3Za','user','ak_cfdc7c64627d7f86','2023-06-17 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$XuDG1IoutNrXSPWHCDkcD.5EaMuLyH9rerIo.RljIyyP8NrO1iFqU','user','ak_f2284b92da8ce688','2023-08-23 10:19: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=44973;

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


