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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$mMB8Ex8LlI0i952F/TDDsySw9.0BEHlFDGWDjPgxXT0o3wOWGIjiw','user','ak_fb6b86c195278bec','2023-04-10 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$KoaBhm2pXQuLbH2nUSNzJmUZ3l5j9uM2rkE.vmGU.cGtdiPtM4O0w','user','ak_a5ad6b17e5c242d9','2023-04-23 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$SGIilciVdQPio.1n9iIQN2ym0YkTMTRsIiXLZbjBnRxhOcDRSGN7e','user','ak_18bba6e452022e05','2023-09-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$.8Dtrs2160qIrLQc.HfvW4TxGMiRsPZ7VoSucQDBDDj68raKm12vp','user','ak_fdc1b48355d20f71','2023-10-10 10:22: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=18768;

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


