-- Host: db-master-5.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=3265;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$JQ7KaCyv9lQMbGQ62Ajc0UorH84wPMOR.CTGqa3oZg/4p9Dvx98KO','user','ak_539600c96287f14f','2023-02-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$/npzzHJ1Em2/6HidbA83xPg0XkmxMAlrf5kwi3ewkogXrrrZVSAsl','admin','ak_64e562be42711fc3','2023-03-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$mEbrV2Mj6GLXXd0YoRuLb1azITx.6nAtaA6v/kVcZ1dTcdaVKv5GN','admin','ak_4030c05df3ccd928','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$/JgAKTaU9eDlKeRN7Vp6NADONFKNvW.v/UZL6ieIWVAfTFWm8k0OQ','admin','ak_07f373a2cc9e83b7','2023-03-25 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$C2v4OjuGVP7T9EIcQ.mPhdydPRe9oBaz4.GYCHx.vQuYQiBDsJ3xO','admin','ak_36d7cb62688aaeb8','2023-04-11 10:07:00',NULL);

