Categories for user-submitted feedback.
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| 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. | |||
| id | uuid | uuid_generate_v4() | false | public.feedback | A unique, stable identifier for the record. | |
| name | varchar(255) | false | A name that describes this feedback category and is displayed to the user. | |||
| 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 |
|---|---|---|
| feedback_categories_created_at_not_null | n | NOT NULL created_at |
| feedback_categories_id_not_null | n | NOT NULL id |
| feedback_categories_name_not_null | n | NOT NULL name |
| feedback_categories_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| feedback_categories_updated_at_not_null | n | NOT NULL updated_at |
| Name | Definition |
|---|---|
| feedback_categories_pkey | CREATE UNIQUE INDEX feedback_categories_pkey ON public.feedback_categories USING btree (id) |
| unique_category_name | CREATE UNIQUE INDEX unique_category_name ON public.feedback_categories USING btree (name, deleted_at) WHERE (deleted_at IS NULL) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.feedback_categories FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls