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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$LkFWN0txR7xByrgIA6jdp1JAe3AlrLsF4R5Y3DKH34I.TKFde.ie6','admin','ak_d6a3ef4add6b092f','2023-11-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$/xdN6.zLd46eo6DxDO2MAVGsnDcZCEo2oUbXjh7R8Tfz.dPv35fi6','user','ak_265621c7951f1900','2023-12-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$ae3IZFFzz5Wnw8T2ovudzCDOOhTbX6cxaXGGPe7tUAyVPlSLW6cjk','user','ak_7fbf4b98c3d3ff31','2023-01-02 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$j8vy7h5V0QluvF/.Kc1cTzVNVaGs6DLGmPP6lhuMmjizkhwz4/ANg','user','ak_48e1357900d036f4','2023-09-28 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$3TfSZQ7F0cDKYC870nOwj..efZHzKFxIevfFowR0Fj0/EBidRzt8T','user','ak_2214ca30a8973603','2023-03-22 10:03:00',NULL);

