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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$KknB7o3TtkNSAGNqvg9LZMSGW4g9rrk2Q7DdIEhArOGTbQFuFplgz','user','ak_23c7af51a22d8dcf','2023-04-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$smjCa1dtL3zatrtioSZv9AL3zd69mTTLQF3gw6zSXLMtnELLRHgSE','admin','ak_ad0460bb2946bd78','2023-03-08 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$a5fkEM/p3O1uKFeF5i5aeMKyy0IBCdvit1Q1uk0g65zF1UDDDPzLn','user','ak_114176a537e2b527','2023-08-28 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$2UPaZBRztxXTPMKSJTwTPSitR5uIS6R9p5MS0JUg.KTBju4hKn0eN','user','ak_f9ff2eecbfa14c55','2023-11-08 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$yYCWfGwQlA6pXZjQVw/biajRwVIzlQDasjEVZZLRCMTR808FqFlt7','admin','ak_7a1650931645be47','2023-06-17 10:11: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=22373;

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


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

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


