-- Host: db-master-4.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=48267;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$kkLmsQMlZHec/6uAEv9GZFE20VIbmOGgsFIX3E0WKIcoiWa6tHJA8','user','ak_a4f73b2ed5dc8671','2023-05-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$.T5ZnWW3ggCus8CZNP2Igb9GOSaKxx83yhm9FOtLDobrkiPGXRj3U','user','ak_a74e36e24264d130','2023-08-02 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$elvqO1kD8aSoyrB1FTOSlTllxx5nTf2mVgREzzRCapO0qCQ6BazAa','user','ak_f5c53bc1c9c83f65','2023-05-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$XUkCiC2uJ32DQ8t37/3PF16XP4ElFkjlujicAlaAsuW90HklUAG5o','user','ak_6f409aac25f2cd6c','2023-10-24 10:21:00',NULL);

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

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


