migrated_and_current_ticket_sales

0 rows


Description

Combines ticket sales data from migrated_ticket_sales (imported external tickets), and ticket_sales (current PBJ tickets)

Columns

Column Type Size Nulls Auto Default Children Parents Comments
ticket_id int4 10 null
ticket_sales.ticket_id Implied Constraint R

Ticket id as it exists in PBJ

customer_encoded_id text 2147483647 null
dim_draw_id int4 10 null
dim_draw.dim_draw_id Implied Constraint R

See table dim_draw

lottery_names text 2147483647 null

Lotteries this sale applies to

lottery_type_name text 2147483647 null

Type of lottery this sale applies to (e.g. Raffle)

game_offer_names text 2147483647 null

Game offers this sale applies to

sales numeric 15,5 null

Total cost of the ticket

ticket_timestamp timestamptz 35,6 null

When this ticket was last updated

Relationships

View Definition