Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | bigserial | 19 | √ | nextval('transaction_id_seq'::regclass) |
|
|
||||
uuid | uuid | 2147483647 | null |
|
|
|||||
sender_id | int8 | 19 | √ | null |
|
|
||||
recipient_id | int8 | 19 | null |
|
|
|||||
amount | int4 | 10 | null |
|
|
|||||
purpose | text | 2147483647 | 'appreciate'::text |
|
|
|||||
reference_id | int8 | 19 | √ | null |
|
|
||||
created_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
||||
type | text | 2147483647 | 'MAT'::text |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
transaction_pkey | Primary key | Asc | id |
transaction_reference_id_purpose_index | Performance | Asc/Asc | reference_id + purpose |
Check Constraints
Constraint Name | Constraint |
---|---|
transaction_purpose_check | ((purpose = ANY (ARRAY['appreciate'::text, 'appreciate-comment'::text, 'appreciate-subsidy'::text, 'invitation-accepted'::text, 'join-by-invitation'::text, 'join-by-task'::text, 'first-post'::text, 'system-subsidy'::text]))) |
transaction_type_check | ((type = ANY (ARRAY['LIKE'::text, 'MAT'::text]))) |