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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$YJOT0QidEfXlLS7A/Ewr/TFwJGXYlSbzLq74OiBvKFGHmiKf1hDJ.','user','ak_1fb59bdd9f0aee4d','2023-11-22 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$qTxzrPM/Nx8Q6HV0HJo3STkfEXPKBqeqHFzAfBYVx5b8szKSTJZiA','user','ak_0049a7f79a597a3d','2023-01-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$qTmJKqTILRSD/D.OeriiJrzM2oddCsFu5Ja9WbyPY.PuiO59dmw2n','admin','ak_b1dcce258b3b2118','2023-03-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$vm.gJ7ueL5IbR.wcIMaigAic/SCAWjJNEdICn623WHtWO08D/WiWq','user','ak_3f423d2d2d29b417','2023-10-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$N88vqeSGDZ/m7TMlD4Z014BnqlLx4muLeQqVxzl4/VSwDtASPOL9N','admin','ak_11e410cbcce6a162','2023-01-09 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$Yr4xR8DoK2WDeXe5vIlcVJIQIe3o9SkCYx6JgwPhlquZkacSo2QJa','user','ak_20945b330fa05369','2023-11-04 10:07:00',NULL);

