-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$EmHOjRd0/7rc0yE9eLRBdQhX2XGlJThThSvqTMH7tlXQCZKOmOnH/','admin','ak_d1be9222d86403e9','2023-12-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$n18mXZg.pZp/A6SA5qa3WpO0TMYVxEJuobOYg8hNioGtZoWl7Frwo','user','ak_ba5182b4be5a0684','2023-07-12 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$BI8sxaCcdlUNUhV9CfASyoSxA6oylQoL3pNnM304mrwtzsXU2yj7o','user','ak_192c45102e03e348','2023-08-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$UwJIzkbnHzk52h/WluvHz5DFWeHfp8X7Pg7sEK5YP0pu/nPtOZD1T','user','ak_f2418425916856e6','2023-03-05 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$5Z1PEKJ2oGGcheEtpFlimNchhcb3L2xE6PGVm.vVr1dj2fyBE5ule','user','ak_8b19a0f3647551a8','2023-08-23 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$3mdo3qL6i6.X6.SHuSsCa8bpvmyHyk6fpGnjku3AD3rIdATjiFbnA','user','ak_14552dc0df99cbad','2023-04-25 10:08:00',NULL);

