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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$G2kOF3MaT6ay7gNnapNsU5cBj4p/9V8EXXFF/4Nkj27iP4Wi25k73','user','ak_595cddb71f506c45','2023-10-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$z8ZIZNiwYeOX11LjMu7wb5VdJT3vJooSI.Q9OkIRd7kde3X9zABm4','user','ak_f8704817cb36b948','2023-02-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$/21sk69blq4ry.rdCXB4.QmkEfmVKDZ8t1XIveyoJttMVyfuKoCuB','user','ak_97fbe9315ffca52d','2023-04-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$fvR32/v3FSBWC/DsUXa7iJycKfkyP0V6rKTKOumxBtJbxMFC229zb','user','ak_80aa49637800c708','2023-04-23 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$l5eMxmJsAQKW58MfuDnnELqC.TTPbPZ0CYEi.sUCZ1j.yyNCRwHqs','user','ak_51cbec90a39064d0','2023-11-27 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$bQkcFeOYD46VuTLARyFiXahrcCb8q.sWO2UXGJ0SZTs5CIR3T3wZE','user','ak_0c5aed9ed51da85f','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$tUqVJDfL/c0iCFWjht750w1bEQFilcKF3JmQIwjNlR5d6NmsBYSAu','user','ak_51691579402e2f7e','2023-04-03 10:16:00',NULL);

