-- Host: db-master-5.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=11317;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$XBsOCe7hMA2avcFCE7kEBlOLFk0.9ylckJ3MAHPN9q3QOKQtElt9A','admin','ak_c1c77d14ce07e9ea','2023-04-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$LLpoKbChFMCcZaM1NLQPFY22COeeBlSD7n3h9.H2ar8/m5Dsm/4jW','user','ak_0091fc9934fa4e88','2023-03-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$fUmeoQ5GQn6TmWFuDGgr8t.13utkQIxrNN.wg8yjVFurRLhzLIJIl','user','ak_a52a8755b60ba892','2023-01-15 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$cj/9lpSHmzVpmDcFutfivM/DRqg5ASRMcGPTWLGK/J1YwDJ3mCfS4','admin','ak_202dc4f2463f34e2','2023-12-26 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$EQwB3U4KjCvCSC8dAhdM9YMxKzAiiebdIG5DpKbhaenRKP8cXaAwj','user','ak_49ba6db1e9fe2b6a','2023-01-25 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$V2V3P5dZvvssWDFL3kaEBVSp1yiM7QldiFJCIM.6z2D5eee3mIeoP','user','ak_f69c03ea76c965e5','2023-08-13 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$XCMUjBkaP4ZltTo3IZB/BAVA/7x94SdWcGbYbAWIyttdu9397WQLV','user','ak_86e51247a5985a3d','2023-07-14 10:02: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=38251;

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


