-- Host: db-master-9.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=49765;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$bUtPsASp2rhqegaQYMTWvbMbIBUIZZeVyE1ZUIt8arNBC1gwcxOZL','user','ak_41fbe14112bbd202','2023-12-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$S430jRNnKOx8XyRNCdk37YmsrKAN3ja7X0BTthlayfBEl0lTIUCfA','user','ak_649be57287b05d2d','2023-09-17 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$c3.z6Lsw9mCQ0S6o/pXzCJjyaaBq0XZa9exoVbNfqq8cb/SR0IgvX','user','ak_39bc6ac0bde0aa95','2023-06-17 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ldapW9fa92XE88MbqA4SvK/A/isbmvIphweDdGQ.9qDHUGeLKII0U','admin','ak_a40f6b344471e561','2023-09-28 10:20:00',NULL);

