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

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=43941;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$EaBjiTmfWSKdANGlx98iXiI.R9mIlk2e/jscGnvVdhfKrqJVkoeuq','user','ak_7515eb62e49d8c84','2023-09-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Hjw5YiZYczTocRlQ8fktlOCy1X5G6qtAKI4STdrvxCPJiAiNi0Ng0','admin','ak_b3eaa61ada40d392','2023-10-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$3sh2UlofQhf4u3i14PxF7z56ZP3VFuJLXjv9gNUAkNzPZJbhavTbi','admin','ak_087c2a6bfaba8fef','2023-03-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$BUzwJCRyUpGLpZCbaxolVsYxqjCgF8rnaPyRtygbk//.sVrFMOwgJ','user','ak_3771ea8c069d95f4','2023-07-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$TU6j5pTiMQoAACmaVxuCc4Nzq4C36M6An1t4Hr0r5wholYSspAw5r','user','ak_57c8ceebe49c87f2','2023-10-17 10:17:00',NULL);

