edge_budget_expenses


Columns

Column Type Children Parents Comments
id int8
key varchar

A key to reference a schema element for a funding scheme. @example ‘basic_daily_fee’

amount_cents int4

The amount price in cents. @example 1500

amount_currency varchar

The rate currency code. @example ‘AUD’

frequency varchar

Frequency of amount within budget. @example ‘weekly’

created_at timestamp
updated_at timestamp
company_id int8

The foreign key to the company record. @example 1

budget_id int8

The foreign key to the budget record. @example 1

daily_amount_cents int4

The calculated daily amount for this expense. @example 1500

daily_amount_currency varchar

The calculated daily amount currency code. @example ‘AUD’

interval varchar

An interval this expense may recurrur on. @example ‘weekly’, ‘monthly’

created_at_in_company_tz timestamp
updated_at_in_company_tz timestamp
company_timezone varchar

The company timezone. E.g. Australia/Brisbane.

Indexes

Constraint Name Type Sort Column(s)
1e3b41a88f9244f482be7c2888e4e400 Performance Asc company_id
3d1e4e0954f55122fd7f4df66229d7f6 Performance Asc budget_id

Relationships