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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$/VJEHz8Q/.I6o6RidH8hZM6m82xsG4CFGezgjvjNmVLaZHmUE3Pli','user','ak_7518eaffb56e37e8','2023-02-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$ORZecMkugm0areaTdDQS2sncQMeUWavE19C7D/YiCDHbBxMV9Z0vd','user','ak_b988564fe5755111','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$zbnU1CyhsmQloKL9WtnxEDOS5R.q22qCSmpI8PiFGyuQyPrrLLZE6','user','ak_022e0ffbfd1c8e33','2023-11-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$VS7oslvrOAoZQ/PdxLLHPHw6O6lzY2Fv1BqnA2YS/pUZ8HNsVuo8l','admin','ak_fb397c795127d769','2023-09-17 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$a58teF3R8OwIOtfPQdd.Mu04ZDY4CSzRQUUJb4Id1kXvkZz3FgjJN','user','ak_4abe2bb1400692fb','2023-03-12 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$0RhltxDs98GXW2E4MBPJ6/EIa6S4uBvLodHbszXueVzfbwNSNXFIt','user','ak_fd00c8be8b69c209','2023-07-05 10:01:00',NULL);

