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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$dK28zjZhFToztQxMW8pQB9IUkIeQwdTfc6f632OtBaw9kFhz7yGGi','user','ak_8f4c55f64d9fd7bf','2023-06-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$406zwd/5l0B5CwKiopWKLUCxYRx5HmrBeQrl0S1aYRJO95PtBLiVI','user','ak_7c03fe984e73f5e1','2023-07-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$os0MloEkPvlxnAD.FS4BNUCoj1KKwojAVoK7ylhHyPgiHUWLzQkXy','user','ak_5ae2451dc164fb59','2023-02-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$0cr4QPMcc.NwfxoGiERtJWZww3clE57gWyehzhqF6QlTaLC.Uwyco','admin','ak_ceed134f5c02e75e','2023-08-22 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$dU0BuXB9MbTMV7mHJw/PPKBJ1Bik2cXwEWs9gZ1jxxG6cvzAEnc0.','user','ak_2b4fe5da055831d4','2023-08-22 10:17:00',NULL);

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

--
-- Dumping data for table `payments`
--


