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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$mqbVsLrUkSXVNIcyMssNSWlAYNKIFgkuPjvze7PUEV4XMrKIUsMQq','admin','ak_ba3c2fb6bc7cfcff','2023-10-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$iVUiJE1DqIdksWJySGTH1J1kXSXRmq3qwkHh/hHd1CkmCtTJ973Os','admin','ak_9ff85b87572469a4','2023-12-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$CXgIcW08RIY1ZQR45wI2a/J0E.QXAncqVaDD3P7E3EpzQG.Y.dFaM','user','ak_a5313f06a5c1e7f1','2023-09-28 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$XEncvFau4xExkVhsZsViJxNt3jCtRwH2MMfJgcGfUomkR.FSjrrvh','user','ak_95d59b2a16905bd6','2023-11-02 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$fXjFVsFOHiu45I0WXjotQGYQzOM1oNAvpWrfBXE24A2eMKyXaE6G4','admin','ak_a42b55f90ab472a8','2023-05-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$f2gKVIBl2bkfQOpSmkyzxR5Ja7vJjHJb/vhL5qB2sceMgRiTMz3DS','admin','ak_8a29b5285f86183f','2023-02-28 10:06:00',NULL);

