-- Host: db-master-1.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=15481;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$.ehnFGWn62HlnyUZ6FQCEmRndAITH8ie77Srrkl0nlGSVVTGO.7wo','user','ak_585d7e49c36f3ef6','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$txCJ5F13wo7qkxiNxUkH7cD9XKZ2DMHJWO8b6razdAFmCMkV2eI6Q','user','ak_e0701c1206d9d9c4','2023-08-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$KCs7bI5yE.ZwWANBFR0fwtJlEdsofiVoY.bqMYUXwSRAKE1owbSkY','admin','ak_63164b914e790ccf','2023-09-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$Vny2oW7w60zJ8vo8S2VQkjkFr8N4K4z5s1CiQkmvQU2whLvQ5SCre','admin','ak_994616a3e9c30b1c','2023-12-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$R5r4lTfaE1GKUmIIyel.u7XfTqovY17pCNfv49QoMtkdi/uWk1Xjw','user','ak_4089cb50d35157a8','2023-02-07 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$y8AGJWJZhqtik86cWg.PGcHmDVAWQbUguerO2dW.JyjDV27n52gb9','user','ak_e699ccfd2201fd5d','2023-02-06 10:12:00',NULL);

