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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$80.4sqMaRVYjG4esvix3RnzCWzSHAfvbvgAfPJ1KdTP65pyWLqoAn','user','ak_3fa8424c04baafda','2023-07-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$rrPKSYVAkX0DM1C9mlKfMnW.7J73JFECoc6tYnod7ZArGNoIJpoNL','admin','ak_4dadd56ff869474f','2023-08-11 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$UMmF4PKAUA6juuti5f6xjRgMwbrLmtaNMXXjux7OgDlGHu7mID72z','admin','ak_b57655b2a6876d3c','2023-10-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$9ARpEbuY69uW1pa2jORS6bYNNUefaiN6Krv9rtGd0VjcEmVLnflHA','user','ak_81691462157d31bd','2023-09-05 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$y5P5pe9m8wVROL5.ZziS6GTP.gpAa.z.bUdm5tHhPcmPbt53kgzu.','user','ak_426705feb17b5778','2023-11-01 10:22:00',NULL);

