Tables


SchemaSpy Analysis of jl_metrics

Generated on Thu Jun 25 13:08 AEST 2026 -

XML Representation
Insertion Order Deletion Order
TABLES 79
VIEWS 3
COLUMNS 664
Constraints 108
Anomalies 25
Routines 0

Database Properties

Database Type: PostgreSQL - 17.10 (Debian 17.10-1.pgdg13+1)

Schema public

standard public schema

Tables

Table / View Children Parents Columns Rows Type Comments
audit 0 1 3 150 Table

System table for PBJ platform. Table records the last updated timestamp for various tables on corresponding nodes which can be used to look up during ETL

customer_communication_preference 0 2 5 0 Table

Table represents customers communication preferences

syndicate_dividend 0 7 9 0 Table

For commercial lotteries. Table represents syndicate dividends

update_history 0 0 5 182 Table

System table for PBJ platform. Table represents the update history for schema files

account_transaction_status_history 0 2 5 0 Table

Table represents the status history of each account transaction. There may be several transaction statuses or states for each transaction over time

deposit 3 6 18 0 Table

Table represents deposit specific data related to transactions

dim_draw 6 1 10 0 Table

A dimension table to normalise draws for the lotteries

syndicate_sales 3 2 10 0 Table

For commercial lotteries. Table represents customer syndicate share purchases

withdraw 1 2 3 0 Table

Table represents the withdrawals of customers

dim_browser 0 0 9 5 Table

Dimension table for list of all available browsers (primarily used in customer_action)

gift 2 2 11 0 Table

Gift attributes — one row per gift

dim_date 10 0 44 73413 Table

Table represents a dimension of a day. This is not locked to a timezone and is updated daily

dim_pricing 5 0 5 0 Table

A dimension table to normalise pricing types

product 0 0 12 0 Table

Deprecated

dim_lottery 11 0 7 0 Table

A dimension table to normalise lotteries

customer 19 4 44 0 Table

Table represents the customers from the node databases

syndicate_session_sales_history 0 2 7 0 Table

Track changing attribute of syndicate session sales.

dim_recurring_purchase_type 3 0 5 0 Table

A dimension table to normalise recurring purchase types

dim_channel 6 0 5 0 Table

A dimension table to normalise PBJ sales and supplier channels

reward_account_bucket 1 4 6 0 Table

One row per reward bucket — a bucket is tied to a single reward deposit

metrics_data_adjustments 0 0 6 0 Table

System table which identifies consistency and possible missing data across the metrics database transactional tables

gift_purchase_status_history 0 2 5 0 Table

Status transitions for a gift purchase — one row per status change.

customer_account_transaction_summary 0 2 6 1 Table

Table represents daily summaries of account_transaction for each
customer according to QLD timezone. Aggregated for performance reasons

customer_event 0 3 7 0 Table

Table represents customers events

dim_syndicate 1 0 5 0 Table

A dimension table to normalise commercial lottery syndicates

account_transaction_reversed 0 1 4 0 Table

Table represents the account transactions that were reversed

deposit_status_history 0 1 4 0 Table

Table represents the status history of each deposit

dim_gift_status 1 0 5 0 Table
dim_entry_offer 2 0 5 0 Table

A dimension table to normalise commerical lottery product offers

customer_feedback 0 1 11 0 Table
dim_campaign 0 0 9 0 Table

Deprecated

ticket_sales 7 6 20 0 Table

Table represents ticket sales of customers

dim_customer_event_type 1 0 5 0 Table

A dimension table to normalise customer event types

provider 3 0 19 35 Table

Deprecated: use dim_provider instead

syndicate_wager 0 2 8 0 Table

Deprecated: use wager instead

account_transaction 8 3 7 0 Table

Table represents the transactions of customers including purchases,deposits,withdrawals and reversals. More specific data is available for deposits, purchases (ticket_sales) and withdrawals under the relevant table

dim_cause 1 0 5 0 Table
wager_cancelled 0 8 17 0 Table

Table represent wager cancellations

dim_gift_purchase_status 1 0 5 0 Table
migrated_ticket_sales 0 2 16 0 Table

Table that represents migrated ticket sales.

wager 0 13 25 0 Table

Table represent the wager numbers and wager/purchase information of each ticket

syndicate_session_sales 3 2 3 0 Table

For commercial lotteries. Table represents syndicate sessions that shares belong to

dim_account_bucket_type 1 0 5 0 Table
dim_scheduled_purchase_event_type 1 0 5 0 Table
dim_provider 4 0 5 0 Table

A dimension table to normalise commercial lottery providers

gift_history 1 4 8 0 Table

One row per update event on the node gift table. Receiver and deposit are only populated once the gift is sent successfully

dim_organisation 2 0 5 0 Table

A dimension table to normalise PBJ sales and supplier organisations

dim_transfer_method 4 0 5 0 Table

A dimension table to normalise deposit/withdraw transfer methods

dim_customer_feedback_score 0 0 5 0 Table
dim_account_bucket_category 1 0 5 0 Table
ticket_status_history 0 2 5 0 Table

Table represents the status history of each ticket sale

scheduled_purchase_event 0 2 5 0 Table
ticket_dividend 0 7 11 0 Table

For commercial lotteries. Table represents ticket dividends

dim_mobile 0 0 6 0 Table

Deprecated

recurring_purchase_status_history 0 2 8 0 Table

Table represents the status history of each recurring purchase

reward_account_bucket_transaction 0 3 6 0 Table

Transactions for reward account buckets only. Positive amount = deposit. Negative amount = spend (e.g. ticket purchased using rewards).

dim_device_platform 1 0 4 3 Table

Table represents a dimension of the possible devices customer can use when accessing the site

dim_scheduled_purchase_type 1 0 5 0 Table
dim_affiliate 3 0 6 0 Table

A dimension table to normalise affiliate data

sales 0 3 14 0 Table

Deprecated: use ticket_sales instead

metrics_health 0 0 5 0 Table

System table which identifies consistency and possible missing data across the metrics database transactional tables

dim_game 0 0 5 0 Table

Deprecated

scheduled_purchase 2 5 12 0 Table
dim_division 1 0 6 0 Table

For commercial lotteries. A dimension table to normalise prize divisions

last_checkout_update 1 0 4 6 Table

Deprecated

dim_recurring_purchase_event_type 1 0 5 0 Table

A dimension table to normalise Autoplay/Subscription event types

dim_account_transaction_status 1 0 5 0 Table

A dimension table to normalise account transaction status data

syndicate_share_status_history 0 1 3 0 Table

For commercial lotteries. Table represents the status history of each syndicate share purchase

administrator 6 0 2 0 Table

Table represents list of PBJ Administrators

customer_action 0 4 13 0 Table

Table represents the actions that a customer has taken on the website

dim_location 2 0 4 0 Table

Deprecated

withdraw_status_history 0 1 3 0 Table

Table represents the status history of each withdrawal

recurring_purchase 3 3 6 0 Table

Table represents list of Autoplays/Subscriptions of customers

account_transaction_summary 0 1 5 1 Table

Table represents daily summaries of account_transaction according to QLD timezone. Aggregated for performance reasons

wager_purchases 0 1 6 0 Table

Deprecated: use wager instead

update_revision 0 0 2 11 Table

System table for PBJ platform. Table represents the release revision identifier

recurring_purchase_event 0 2 5 0 Table

Table represents the recurring purchases events. Includes next anniversary dates and success/failures for every purchase attempt

admin_transfer 0 4 9 0 Table

Table represents transfers made by PBJ Administrators

prize 0 3 16 0 Table

For commercial lotteries. Table represents ticket prizes

migrated_and_current_ticket_sales 0 2 8 0 View

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

customer_phone_event 0 2 4 0 View

View represents customers phone events

account_balances 0 1 3 0 View