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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$17/qmZ2xTBFoZfGvcU6lrAGucLWnsj1352T065ZI..F5mPvz6.eWa','user','ak_6ad55c59727496b6','2023-09-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$dVcAgRv/jCNlJ54nu2Yi4ZHVw.5RbD4.3yjw1y7QCPVIDeZFgqYyU','user','ak_93bde4f58112473c','2023-03-24 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$up8i77Y.3ymjRwHmE8UMWiTE73CkzYFADwfcaP5asSvOepSpgDbR1','user','ak_25dc1b057fcce7a0','2023-08-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$84SM9d6UPi21wbV/QYqqCwqXUxagCvkQrsexFmTZ4qoHL6DehyMto','user','ak_7ce6580424f12652','2023-07-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$3aVgdg3IaYEhWDqhn9c3yxKTVO0zVEG4W75x2JfjZki8QgglVeD7n','admin','ak_8481bd77957319ca','2023-10-13 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$w7QTBv9eiN6WcLUsupVbNd0CBi54q.yilP9lW4CWXOKmJlpO8LQnG','user','ak_b2c12f9c9a1fe567','2023-02-03 10:04:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=50963;

--
-- Dumping data for table `sessions`
--


