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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$4wwHH3exwPA3.KFv4tm7xG2VHWt5tg155MR3b88kl/xoBicfKF9u6','user','ak_29e08bb91366dd85','2023-07-16 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$mMCW2VSOJb.amV2oLZ3D9uwyEYEu1PJToklTb8L8IGIfDn7s0Dgfj','user','ak_8afb1825eff806a4','2023-02-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$E24Kk3zfR8b45kcyOPylbz9XZaBSikdFw.Kc5A5QS/LhG0qvYOJLJ','user','ak_8029a443ba818282','2023-08-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$hX.TBYBoxL7qV5qX4P2eXNyjKcoz/vOtrtbbZfdCE65cqDNRRRmT9','admin','ak_18c56d3114395618','2023-05-06 10:15: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=42104;

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


