-- Host: db-master-3.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=7548;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$M8FOPTxX0HieHhH2EtDRl.p1pHQkGP3cJ2SYbGwGOfjeF3eS7HjpW','user','ak_fa946c0e64637b9f','2023-05-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$gVTfYUI74uTGLa3AzNEJY1HEqbAdItofTuNrJ4FO2rDTilsdDqiSM','user','ak_213bdf4175f36950','2023-08-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$vjSUkgjuesjoJkapg2q4hzapxZ2R/BKOeC6RX1/WVn.10k2zmafAy','admin','ak_56565344b24ca59f','2023-09-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$GPxHq7JhVgVNVnACQpFe3C2mZFcx0qcPU3oefN9mWqPLn5BG45bXo','user','ak_4eac98a1f732eb8d','2023-12-23 10:05:00',NULL);

