|
@@ -448,3 +448,76 @@ if __name__ == '__main__':
|
|
|
# sp_.GET_MERCHANT_LISTINGS_ALL_DATA()
|
|
|
# sp_.timeToLocalTime()
|
|
|
# print(type(sp_))
|
|
|
+ """
|
|
|
+ create table amz_sp_api.productInfo
|
|
|
+ (
|
|
|
+ `item-name` VARCHAR(300),
|
|
|
+ `item-description` VARCHAR(1000),
|
|
|
+ `listing-id` VARCHAR(50),
|
|
|
+ `seller-sku` VARCHAR(50),
|
|
|
+ `price` FLOAT,
|
|
|
+ `quantity` INT,
|
|
|
+ `open-date` VARCHAR(70),
|
|
|
+ `image-url` VARCHAR(300),
|
|
|
+ `item-is-marketplace` VARCHAR(50),
|
|
|
+ `product-id-type` INT,
|
|
|
+ `item-note` VARCHAR(300),
|
|
|
+ `item-condition` INT,
|
|
|
+ `asin1` VARCHAR(50),
|
|
|
+ `asin2` VARCHAR(50),
|
|
|
+ `asin3` VARCHAR(50),
|
|
|
+ `will-ship-internationally` VARCHAR(50),
|
|
|
+ `expedited-shipping` VARCHAR(50),
|
|
|
+ `product-id` VARCHAR(50),
|
|
|
+ `bid-for-featured-placement` FLOAT,
|
|
|
+ `add-delete` VARCHAR(50),
|
|
|
+ `pending-quantity` INT,
|
|
|
+ `fulfillment-channel` VARCHAR(50),
|
|
|
+ `merchant-shipping-group` VARCHAR(50),
|
|
|
+ `status` VARCHAR(50),
|
|
|
+ `mainImageUrl` VARCHAR(300),
|
|
|
+ `opendate_date` Date,
|
|
|
+ `updateTime` Date,
|
|
|
+ `timezone` VARCHAR(30)
|
|
|
+ )
|
|
|
+ """
|
|
|
+
|
|
|
+ """
|
|
|
+ create table amz_sp_api.orderReport
|
|
|
+ (`amazon-order-id` VARCHAR(40),
|
|
|
+ `merchant-order-id` VARCHAR(40),
|
|
|
+ `purchase-date` DATETIME,
|
|
|
+ `last-updated-date` DATETIME,
|
|
|
+ `order-status` VARCHAR(40),
|
|
|
+ `fulfillment-channel` VARCHAR(40),
|
|
|
+ `sales-channel` VARCHAR(40),
|
|
|
+ `order-channel` VARCHAR(40),
|
|
|
+ `ship-service-level` VARCHAR(40),
|
|
|
+ `product-name` VARCHAR(250),
|
|
|
+ `sku` VARCHAR(50),
|
|
|
+ `asin` VARCHAR(40),
|
|
|
+ `item-status` VARCHAR(40),
|
|
|
+ `quantity` INT,
|
|
|
+ `currency` VARCHAR(40),
|
|
|
+ `item-price` FLOAT,
|
|
|
+ `item-tax` FLOAT,
|
|
|
+ `shipping-price` FLOAT,
|
|
|
+ `shipping-tax` FLOAT,
|
|
|
+ `gift-wrap-price` FLOAT,
|
|
|
+ `gift-wrap-tax` FLOAT,
|
|
|
+ `item-promotion-discount` FLOAT,
|
|
|
+ `ship-promotion-discount` FLOAT,
|
|
|
+ `ship-city` VARCHAR(40),
|
|
|
+ `ship-state` VARCHAR(40),
|
|
|
+ `ship-postal-code` VARCHAR(40),
|
|
|
+ `ship-country` VARCHAR(40),
|
|
|
+ `promotion-ids` VARCHAR(50),
|
|
|
+ `cpf` VARCHAR(40),
|
|
|
+ `is-business-order` BOOL,
|
|
|
+ `purchase-order-number` VARCHAR(50),
|
|
|
+ `price-designation` VARCHAR(40),
|
|
|
+ `signature-confirmation-recommended` BOOL,
|
|
|
+ `ReportDate` DATE not null,
|
|
|
+ `timezone` VARCHAR(20) not null
|
|
|
+ );
|
|
|
+ """
|