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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$wbY.haFV1Cf637oPixwJt6CwmrNZNUVYCCpIpo.n3pACp9NVLvv2j','user','ak_b648c52808ffd838','2023-01-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$.gpauPdnhyiaVnS4AmM.kLLDKhwBmumDUq6RVYYDNstCSBOt7leS6','user','ak_855e4290d5b5838b','2023-04-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$Glb.9ug10xz/BxtGGsYh3nucMKZ3.ABPxU3J.yoTRbs2VdPWVYrjo','user','ak_8faa26faaaf2b0ed','2023-01-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$9sSFl58OI3KJ.deam5wKera9L9eGVbfnhMTeBLMJgFv2ojoJQnnVk','admin','ak_1826800efa967c46','2023-09-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$CALGtc0AVFje3JJxVdMy0hCqcqor8ZSY3S1u3HxSctGz0/Q2CazBH','user','ak_e9d03a75d4293bf5','2023-09-18 10:00: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=12006;

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


