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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$wUr0Q95gyNkY8UPUEJea0MfS/T88TWDzPG0tHlIqFUZedcRaOHXoR','user','ak_c344b0069485027c','2023-05-27 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$6Gv3ddUsKPA9aTOKmlhNvVaSLuwohS9iMTtcQN3uNwyRiOThWRx57','user','ak_2e333bbade4b64a1','2023-01-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xuys7trKUl3Ntvaesz0zTV.SCS7pc.zhVw01vW9rIg7H/exBU99Pw','user','ak_55e2e2b8f529cb87','2023-06-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$VMtpny3fwaW.ZspXtjEpvk26S3vHF0Ko7dTG1ywK/mVwOb8Kb8.Du','user','ak_01e2622a6be16590','2023-12-15 10:05:00',NULL);

