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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$//uWHRoan96sqgRPJyeZjDMaXD9So7L819VRD1BBs53KLv7mtGX2Y','user','ak_504fe59f0b8d1d75','2023-05-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$YAmEjwXBRo1ebnP.UE/eZmtzevC6Pchi1cWhmpIOEtrf9XBx239p4','user','ak_e241cdf74922353a','2023-03-19 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$RcjE1XaZW9Knb5ru4uM2Lt2oAMZLh00yrHoJ.m1TSm1VHB6xbU4.L','user','ak_93ce19b2f19719fc','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$VyUVTaRF3lco83IZ1GBjkc1/V/rrh69dLreN78G7Ly9O.SldeHdEy','user','ak_e8c8f0a75bda2f8e','2023-11-13 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$FRCYFLmDjVsQ1rwJZ9JCN05i3KcYBXygI4TEJQsMkMdcLrkY/NFcH','user','ak_2640492d8cf832d4','2023-06-07 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=13315;

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


