appreciation


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19 nextval('appreciation_id_seq'::regclass)
uuid uuid 2147483647 null
sender_id int8 19 null
user.id appreciation_sender_id_foreignR
recipient_id int8 19 null
user.id appreciation_recipient_id_foreignR
amount int4 10 null
purpose text 2147483647 null
reference_id int8 19 null
created_at timestamptz 35,6 now()
type text 2147483647 null

Indexes

Constraint Name Type Sort Column(s)
appreciation_reference_id_purpose_index Performance Asc/Asc reference_id + purpose

Check Constraints

Constraint Name Constraint
appreciation_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])))
appreciation_type_check ((type = ANY (ARRAY['LIKE'::text, 'MAT'::text])))

Relationships