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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$PCn9Phg4TfyHfJuHJnwGD7hygMAAAUYrw9itlV2JJeJBV0fy3RZQK','user','ak_175f99f7285895bc','2023-11-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$uKBsfUPG9YuNB9cqCesB5/lXfFuDXo7Fbe88En8XgFjiafultr3PG','user','ak_2b65bc10b1ebb3e9','2023-12-12 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$dbfYuUTqBie6NUphn0bKcXUKS7X94sasZHz5Fr5Bf2XDGNpfZ.dRo','user','ak_ad3e1643889d5f89','2023-11-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$vWivCpS4.lGUAH8Zaxs0zZcddGAlVgemGKoy8yXmZmIr1HnI8Rvi.','user','ak_4926762eda1778cb','2023-10-24 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$D2ob0ARDyEPJl9CNnLWNlZ8h7HmMxVlBZh7FuyySwnmgpKfiI/J0t','admin','ak_c7ea41c279f74ddf','2023-02-05 10:23: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=22621;

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


