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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$9mHGdFV4Oscrc8xfXaWPYRoePDJKiVJHWB59MEcE9cquiJVrNpJCS','user','ak_a36e8ff222707dbe','2023-02-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$IwaBeQ8GEYzwMQPOFi1axXZ/uuDW7XdKvme5YANhwgACb8mwEwCKD','user','ak_e11de80dbf3f13c7','2023-07-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$vcO8MslmdDuG1V99ONFWBz.4KRq1pwlgMPBnoSIUZPI/q3em1C49l','user','ak_7eed3a0e6a9ea876','2023-12-27 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$5fVsBmS6FkM5hPoeVdieeXmGJ.DF63Fnkvdwv8fPR/iN5t2QaTEc.','admin','ak_92ab829053f48fdc','2023-02-15 10:23:00',NULL);

