Used to link feedback to the related blocks.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
block_id | uuid | false | The id of the block. | |||
block_text | varchar(10000) | true | The textual contents of the block, if any. | |||
created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
deleted_at | timestamp with time zone | true | Timestamp when the record was deleted. If null, the record is not deleted. | |||
feedback_id | uuid | false | public.feedback | The id of the feedback. | ||
id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
order_number | integer | 0 | false | |||
updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger. |
Name | Type | Definition |
---|---|---|
block_feedback_block_id_not_null | n | NOT NULL block_id |
block_feedback_created_at_not_null | n | NOT NULL created_at |
block_feedback_feedback_id_fkey | FOREIGN KEY | FOREIGN KEY (feedback_id) REFERENCES feedback(id) |
block_feedback_feedback_id_not_null | n | NOT NULL feedback_id |
block_feedback_id_not_null | n | NOT NULL id |
block_feedback_order_number_not_null | n | NOT NULL order_number |
block_feedback_pkey | PRIMARY KEY | PRIMARY KEY (id) |
block_feedback_updated_at_not_null | n | NOT NULL updated_at |
Name | Definition |
---|---|
block_feedback_pkey | CREATE UNIQUE INDEX block_feedback_pkey ON public.block_feedback USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.block_feedback FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls