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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$AOdJXFyL62Hnbk1PrdRvJOx/.vxf..c4.QOmH3izwZRvtCb7TlwCh','admin','ak_a6b08d1e33b82045','2023-11-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$P8sgR0WlvNcWg4gWE28ot1u2tPFiskV4WOrSzLO0Pda2QIN8SuOsn','user','ak_476eaa8c07344d72','2023-09-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$ocmO3qiwTEqvmFVEDISlm4LbaCx0cyQb8sma6L9rib.ced6KXNPww','user','ak_70e07ff8bfd7be9b','2023-11-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Xu/6U3LAWGdQgc3eziURyuhw4a/A76G6NW2sGC6s2w7x3CA95rYET','admin','ak_c543d0ac7dfa97ac','2023-02-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$SOtIPSaatmY63MN4RlYcapU12nmzH04CDNRLn0XIlfd6RMgt.7gVy','user','ak_61c52aa53cff287e','2023-10-06 10:10:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=42435;

--
-- Dumping data for table `products`
--


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

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


