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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$dSezLOC8pODkn1B6PIDqXcHcex/TZy4cOuULByZ1XvJvChkmbBCVy','user','ak_bba73a2f9b29654a','2023-03-27 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$aqTwMQLxs/WYncE3Z01FJ7w2yjfLDLUOoHuJgDjnzPiZKkJwYQXrw','admin','ak_75de508dc088c7a7','2023-09-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$4kjYPvINtKeXv/wINCWARavYii.JyDdIjAw8A/28YSppZeVrEGDfN','user','ak_bf59d8650570d1df','2023-03-21 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$SXqVOsWhziXsA3QoOCEaVuXZM9/vIT5OmEwha8lpwAkBd4vamBnSW','user','ak_84fc63df11c0e6bd','2023-03-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$mF4eU1uC7KKm.F1Cun6zbRUc0XzybtMkxzMAr6niyQqwfNE6kCzL5','user','ak_d95d09bf3ba7b4cd','2023-02-06 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$kiZzWg3tBggqHXTkPKOPBXMxnkd5c5H2ftNXt3ZIk5FmJhcKLYZov','user','ak_856c535a0abf90fc','2023-06-13 10:19: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=31358;

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


