-- Host: db-master-3.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=15329;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$NK7SKFRiSuxvRan2KY2XUSpigLU5NF4vj./yly9bP2/MjKsIU4.gL','admin','ak_3ef98a57981164bb','2023-07-16 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$oumqRTerfEz9UzldcsUAy56drF09W1bIY0nFMyOvMlY23eeSiIATD','user','ak_d8e4fcf8a7a8b95a','2023-07-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$tc1eLY4k8mTfOFloARqclee/6cLSGt8IUUjkwGD2B5Tpc.R0l2FDd','user','ak_8a6f54a3b386e301','2023-11-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$wi5HO8mE/7AmKaIQDWvOrDP7yprIrBCf5MRGoysZrHmQ.DHufpEOK','user','ak_7ae7bb17da2c723d','2023-02-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$AAYq2n0g3TwhA6taaoRX3xysiFrpEHzGa26PuObd0JqwVxwki2iIT','admin','ak_cd8d7619a0f59dda','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$hZ1tKC112t5b.hjiakbw3JnbORXD0Qj6yEevIKgCFN6JoU1mQixLz','user','ak_a9cee2d077981cbc','2023-08-17 10:14:00',NULL);

