-- Host: db-master-4.internal    Database: ecommerce


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

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$n4Vxis9xJcM5oDgkQPMg8W.OEzIRGsEiOSKlgmkmKEY.ImiSb1kL4','user','ak_160eba186c6181af','2023-11-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$rtyXHPwGfSKKeSwrjmAMOAF7fmCAbrJcZEDw1Ot47iREPA/RLajNZ','user','ak_af9bb6e0a750c455','2023-05-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Z7Vrts8o2Yiha8wjYnqRfBby6oQHzgrss.ulwRVov4vS9TuPfZSiK','admin','ak_6b472a1299c2d055','2023-08-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$SSVZZXomdOoalKdFsaqp4QnWHHk.iywh86tK4KbfkQStIDVBtI3oo','admin','ak_32c617ec76998ddd','2023-11-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$P/IZS3hB0So88B0hS46M5WHmvGB5wn8D7qYId3RirQd3staaOc7/W','user','ak_d8f01e2b5c44bba3','2023-11-10 10:04:00',NULL);

