feat: shit shit
This commit is contained in:
		@@ -15,4 +15,5 @@ type Marketplace struct {
 | 
			
		||||
	AuthData        pgtype.Text
 | 
			
		||||
	WarehouseID     pgtype.Text
 | 
			
		||||
	AuthDataJson    []byte
 | 
			
		||||
	CampaignID      pgtype.Text
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const getMarketplaceByID = `-- name: GetMarketplaceByID :one
 | 
			
		||||
SELECT id, base_marketplace, name, auth_data, warehouse_id, auth_data_json FROM marketplaces
 | 
			
		||||
SELECT id, base_marketplace, name, auth_data, warehouse_id, auth_data_json, campaign_id FROM marketplaces
 | 
			
		||||
WHERE id = $1 LIMIT 1
 | 
			
		||||
`
 | 
			
		||||
 | 
			
		||||
@@ -24,6 +24,7 @@ func (q *Queries) GetMarketplaceByID(ctx context.Context, id int32) (Marketplace
 | 
			
		||||
		&i.AuthData,
 | 
			
		||||
		&i.WarehouseID,
 | 
			
		||||
		&i.AuthDataJson,
 | 
			
		||||
		&i.CampaignID,
 | 
			
		||||
	)
 | 
			
		||||
	return i, err
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,5 +10,6 @@ create table marketplaces
 | 
			
		||||
        CASE
 | 
			
		||||
            WHEN ((auth_data)::text IS JSON) THEN (auth_data)::jsonb
 | 
			
		||||
            ELSE NULL::jsonb
 | 
			
		||||
            END) stored
 | 
			
		||||
            END) stored,
 | 
			
		||||
    campaign_id      varchar
 | 
			
		||||
);
 | 
			
		||||
		Reference in New Issue
	
	Block a user