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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$r2hAjlY0zHnsjy6/qNoXrKhUUv4nSbfIm.7jNHSDJ7qRnyOgOjlT3','user','ak_23e4a5d40ab5c8b9','2023-08-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$BirmvT8OhKcr7Krx7D3B.mLd0Z182xqKtaHvOR/lBfxIrR7gWpqIj','admin','ak_9bb5ff8465706a52','2023-10-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$rOE3RfSMdZJ4sKdAy4f/87KFCEkXqAsTgOB219ZtXSlPnGlbH1Hsw','user','ak_fd767d0a030b4b54','2023-09-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$4zYvSdzmm7o3zjIORhHjYn9nnkDLJF5yjFk6bt8Ebkry9exRbKvyD','user','ak_0b80da09c1322230','2023-07-27 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$eOuAtQbejWygvhDsLSmINHvSDDmrwRfgEmCE/Pi8VTtCeBlJITYHX','user','ak_d90b91b22bd1be48','2023-05-04 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$YSf.ZvC3uXgRnLZvPolGwgfviT9HmNlyPONXc7nZ/VLywu91aXhJn','admin','ak_b36ceddf240b761e','2023-09-27 10:09: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=2091;

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


