-- Host: db-master-9.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=30888;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$K6BLx4UhIv1hu0f9QRQiIyB8ApKilZw57OTaQWwR8JrXU2Ft9SLsT','user','ak_301c3e02315d2eb8','2023-04-23 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$BM74BP3Bx2crcW/0.KyTEL.xwTka/fEERUopDbiWNDC2dTE7t54Nt','user','ak_b50a39081708c86f','2023-09-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$w85hPb6ZJm1FmL7.HuozTnUaxUtFI0xgsPi3NqlOu7JSZcJZaLed0','user','ak_86ad73c9dfe9148c','2023-01-12 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$wuU0eXSmB31nxr0kxRxgg12cGuuu.dU5nl5.shswtvE3tjpPXMKb4','admin','ak_24155f826a4835a6','2023-03-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$4GfH7k/GOXn2CpH0qWjg.AujwbD.Wn9JNRWULoMOYfezuxdess5rL','admin','ak_3fac6c225995a493','2023-02-24 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$6gAmlvS.QpyaBcDJx3KMpmDhex9Wz1s2tXVpo2Ov5ThvnBSgdPh7b','user','ak_a21c8e468eadc8ab','2023-03-21 10:15:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=16711;

--
-- Dumping data for table `orders`
--


