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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$An1umtCC7/KhzeYtJn68WVtSyH/DdhCwiQZxaHMgSQp7KSMcRlHu1','user','ak_e679a5a11c309058','2023-03-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$G5K0dc/0vuQl8ulYH60QsMyiW6FkomJU1DwpADlSO24jpXtwIl2g/','admin','ak_ceb76b9e9e9451c2','2023-09-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Y8RBKSYdxZ3OkFo1VKJalmZNSzK/tZGjtd1B2Byp/N.94u70lcydO','user','ak_55f8711be772da3d','2023-06-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Mmnf1YLvEHOS3gU1G2peslE1vAITU4QUZPMUWEbIe/KnWZVfmcWos','user','ak_3350edb3b4a723e8','2023-11-03 10:04:00',NULL);

