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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$WznG2q3SMldQBtQK/NMuG7kaMXo7EF.B718JgNvoH3QGj/34/.NVO','admin','ak_06b9c1f3059787f8','2023-11-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$BYM7xfatcOC4CMSwNFOgai.64p50NPVyYEQ1gQrxS/d5vWKLQ1jSS','admin','ak_9586058bbb1aa739','2023-02-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$2HWGexZFIGGS/HK1XN07jjuM3Bt4F1f2f9G2Vmq7MF5di6Bwr3ie1','user','ak_cdaa41ce12479f6d','2023-11-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$me.SjraExPlFHLzkM6liSOWeC.9rnVS50m4Fb5WNI.7.uOm0CMMvF','user','ak_87ed544b6b9122e0','2023-10-15 10:02: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=48602;

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


