action.survey_response
|
Data-Modifying Triggers: This table has BEFORE ROW trigger(s) that modify row data before write. Values you INSERT or UPDATE may differ from what is actually stored. See the Triggers section below. |
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('action.survey_response_id_seq'::regclass) |
|
response_group_id |
|
Yes |
||
usr |
|
Yes |
||
survey FK |
|
No |
||
question FK |
|
No |
||
answer FK |
|
No |
||
answer_date |
|
Yes |
||
effective_date |
|
No |
now() |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
BEFORE |
INSERT |
ROW |
Trigger Bodies
action_survey_response_answer_date_fixup_tgr
Function: action.survey_response_answer_date_fixup()
Timing: BEFORE INSERT ROW
|
This trigger modifies the row before it is written (returns a modified |
BEGIN
NEW.answer_date := NOW();
RETURN NEW;
END;