-- Host: db-master-2.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=36080;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$WsNQzZTJjWjoVb6bAoCtMSYJc1BKF7HHeuefLXOtP0pHLhyTwjvNg','admin','ak_6534ef079888a949','2023-12-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$6A1B5UKxYYHSXCf0tfnCrLxHqUMPG5rK04YNgatuizc1OKmHcDUP8','user','ak_0345090abe24dde9','2023-05-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$cWj7Jm5sSd0.2U/4mytFc.57CqM5DOQNzlKegSQyDVWABO8ilOgoU','user','ak_212cbcd9c05567b8','2023-08-05 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$bFL9hFSBOB/tOtAyStRfv1aB9w9KisxvSF9DU8RQttXJChzjZdepc','admin','ak_60dedce79e984e54','2023-03-20 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$iPcrTOpTX8bB9KcY0x6wJlBFwNGfvCg1dXixEjdiOv5eoGYa86lh3','admin','ak_8cdb6cc55df67e80','2023-06-04 10:08: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=16105;

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


