-- Host: db-master-8.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$F2rCn0XFrJ9BfqMP/qhtieJ3CqTBA9HF7JcdilA6Wv8ai6X6EQ7Al','admin','ak_0a6a59329bc828f8','2023-07-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$/biQ2gL1kZcQ9JOUOmV8Rl/9lU2eKGjNWzV0GRtDYK1xKhDDqNrPB','user','ak_42d066a423af240d','2023-02-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$pPUFIhAFGr3syuSaAJ3ZmxcDBbB/hnhquUjy3DVyGtx14vTJR8mXG','admin','ak_5685c176f693ede1','2023-12-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$CzuPt4B3wc0j/GoK0NlB13oD9JOFmNkzeUDrE.zw690TRydY5RAaw','admin','ak_faa4d2d4c15c443a','2023-02-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$ThR1NMHxsFXDLqHLmNIvh0pgj4JgV7hQno6HqQz0V7Sg68gej2k2Y','user','ak_7ec6b50a4e0d289a','2023-12-27 10:04:00',NULL);

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

--
-- Dumping data for table `payments`
--


