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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$AHH.L9Xwpab.kpNmhs0ntSLSiNlNadRDBB7wNI51dIc9ebHFtTBdL','admin','ak_15c9ddc4a2d7373e','2023-02-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$sjCGTTqvSaOPOEIxyITfavJGtWf68H2JKSWVH8c1J8uEU48YDNfqN','admin','ak_14c61ea038ed51bb','2023-07-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$qRQfdG8DHZEL4QsgsafdB8Ui1x5tsg435tdDvkA9JL3u9YyYjsYUm','user','ak_daa9c52f6269fc36','2023-05-05 10:19:00',NULL);

