-- Host: db-master-5.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$IxIflVkhbzsTzlRMzn0THXgc8FUzTjmyoHvSt5kU1lK8TjlWEfyHa','user','ak_65254a6023b77e16','2023-08-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$UYJHNK9Ru2XKLu3so1U7nPlnpm7EvtFGv1iu8mZlZm0xgjgm3Fdf0','user','ak_7de4284b8605ed01','2023-12-08 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$U5/AAx7.YVzKuYtOKEOL/q9tB6IYdAuNLlOqnD.zvvdKxWBM2nkf1','user','ak_1eafac79dda6c7c4','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$JeUkDjWr/Cgam6wQjWcmYIKS8tdo.Lnt4KAC0CSlONnW1fU8zgUsN','user','ak_7cb18b7e3c4ff236','2023-03-25 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$VJO1E6keTWkg33mh1tm90YQnXLWU2Py3MzuoV/H0tt3/0lQ1A7ZR6','admin','ak_ad526cc66658afea','2023-03-09 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$7SOCKe7nQQ4lA9.DhpnXXbfLxhSzRaO828O4Qt.X.aDE9GdCw37.T','user','ak_6c8ce1fe728dc4cf','2023-03-07 10:15:00',NULL);

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

--
-- Dumping data for table `payments`
--


