-- Host: db-master-6.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=15772;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$qSAzJefu4ljCUYunPj8AGbdXtcxq53cuK.c2Cr8FPrD3eFq1p1bMI','user','ak_cfa27d66eb8083cd','2023-08-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$pW2WIVkrD2ZuuFplksYjbxZj.05tHfyRGxPFJ0UT7ZD2eAhLcf6.I','user','ak_7eb982d41481bc4e','2023-03-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$4ZHo5OQD/gInCIHz8bt9AH6jmOSnj/9GFtvvVVkyN60FtxK.QjxpN','admin','ak_39d27fccbb4355c8','2023-06-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$2TqNN0nqv0e/WIWLMh42iAayDFK324gYGspFbuKqwsZ9uaEvYJYYF','user','ak_52971c9c0581f199','2023-11-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$k3ZXHvbtJaSJFRDAueDo9sjJhECBhebOxHFvlhtxfcktdgo4.NO/8','user','ak_d5b17096b506849d','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$mpUP85CACbMAE0NQ11MWMt1xNws/mzlGurLeQa4wdY7Z2KOMUo/mn','user','ak_2edd88faad72c107','2023-08-19 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@example.org','$2b$12$cgmLmWWNXAzkYbKT7DM2XS5PP1YxjFicFmoJnKlOrAgP0T27gFMnw','user','ak_8e5c1ad1df9cf9fe','2023-12-21 10:19:00',NULL);

