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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$N9MPua5PbGxlYpkILKdVf0a0MGthhQHj6qrekNWOcVdKHtuW3fUPV','user','ak_12f9abf4d10d3092','2023-02-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$JB8ngJx6MGVNsb9f3DXFQfKqL6D.g7tq6yU4ufd.YADXX/r0wy.w3','user','ak_2ead18ead308d06d','2023-07-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Fi/3kEvT0dUDHDLdbG9JgdEeyPfhblvHqHePaFMkmuO5gTuBnRP3s','user','ak_7389dd34cdc83175','2023-06-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$SrdQFIVua/ALfuy0de6ozRGB9.cadQHDmux5MtSxo0libCb2t/pM8','admin','ak_10d941a3489625ff','2023-04-16 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$1eMit7MZuhHG3vkjsU7PcsMpSW6wY5QruARY06iXuDg/pnYWX4c2T','user','ak_1aad84a8a862e7ea','2023-05-27 10:04: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=49631;

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


