 -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
 --
--- Version:     0.4.0
+-- Version:     0.5.0
 -- URL:         -
 --
 -- Authors:     Yali Sassoon, Alex Dean, Peter van Wesep

	doc_height integer,

	-- Currency
	tr_currency varchar(16) encode text255,
	tr_total_base dec(18, 2),
	tr_tax_base dec(18, 2),
	tr_shipping_base dec(18, 2),
	ti_currency varchar(16) encode text255,
	ti_price_base dec(18, 2),
	base_currency varchar(16) encode text255,

	-- Geolocation
	geo_timezone varchar(64) encode text255,

	-- Click ID
	mkt_clickid varchar(64) encode raw,
	mkt_network varchar(64) encode text255,

	-- ETL tags
	etl_tags varchar(500) encode raw,

	-- Derived contexts
	derived_contexts varchar(10000) encode raw,

	CONSTRAINT event_id_040_pk PRIMARY KEY(event_id)
)

	se_property varchar(255) encode text32k,
	se_value double precision,
	-- Custom unstructured event
	unstruct_event varchar(10000) encode raw,
	-- Ecommerce
	tr_orderid varchar(255) encode raw,
	tr_affiliation varchar(255) encode text255,
