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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$2tIsGX8dIkSRBAR9bSTrmCcMufjuzZt88i32NKUpkcsnHUyanwaF.','user','ak_ea19d2566b54be69','2023-05-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$lc9hNoPvWLJXzhCRu.PR.BDYS42hHhngeuS/gFS1YoBhYTTeCT1zY','user','ak_9b03fcaf7210a2b8','2023-09-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$5AZkkVWa5VfNFrHCUN4iR4xq4E1huObi/19ryGHMZPPySv6QNQWwe','admin','ak_adaa6cec0a4c8f89','2023-04-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$b94AaqRb33I0B2ePRMTRnpOBA2vcHHRvm5BGzT1vfBgQN.f0l1LG9','user','ak_58dda6919209a533','2023-02-25 10:12:00',NULL);

