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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$iHX3PixxNTtwxlaR1/3Th02nZneqGXwh12PoChrGedzadtxEHIs4s','admin','ak_fa7278202baa2de5','2023-10-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$o.Uz311da7OiKdL/gzAYkoLUr/mqhJ7kA2GTS4cmPOrXXekw0Gk9u','admin','ak_3a47a92394748768','2023-11-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$pBk9Y2q7walziHa2szlQfg1bRnko4ONlU71tktlm7LWVgDBv9YvLD','user','ak_4027b16e93075e12','2023-08-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Ydu2HRTpiT8UPAlIVmE9I9MPeMy.S4vmRF41nCE3NNnp0YMbInpQD','admin','ak_4c2501d187bf4e14','2023-04-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$H.F0DJYLFfTEPFeBOEsawgQWJ4xtc/41jxuP7tBLI88uNwwsA3MWU','admin','ak_cfe0f330166ea2b8','2023-11-02 10:01:00',NULL);

