@@ -99,47 +99,52 @@ COMMENT ON COLUMN reviewer_level.event_id IS 'The specific Event ID this review
99
99
CREATE TABLE proposal_review (
100
100
row_id SERIAL PRIMARY KEY ,
101
101
proposal_id INTEGER NOT NULL ,
102
- user_id INTEGER NOT NULL ,
103
102
assessor VARCHAR NOT NULL ,
104
103
assessor_level INTEGER ,
104
+ reward_address TEXT ,
105
105
106
+ -- These fields are deprecated and WILL BE removed in a future migration.
107
+ -- They MUST only be used for Vit-SS compatibility.
106
108
impact_alignment_rating_given INTEGER ,
107
109
impact_alignment_note VARCHAR ,
108
110
feasibility_rating_given INTEGER ,
109
111
feasibility_note VARCHAR ,
110
112
auditability_rating_given INTEGER ,
111
113
auditability_note VARCHAR ,
112
- allocated INTEGER ,
113
114
ranking INTEGER ,
114
115
flags JSONB NULL ,
115
116
116
- FOREIGN KEY (user_id ) REFERENCES catalyst_user (row_id) ON DELETE SET NULL ,
117
- FOREIGN KEY (proposal_id ) REFERENCES proposal (row_id) ON DELETE CASCADE
117
+ FOREIGN KEY (proposal_id ) REFERENCES proposal (row_id) ON DELETE CASCADE ,
118
+ FOREIGN KEY (assessor_level ) REFERENCES reviewer_level (row_id) ON DELETE CASCADE
118
119
);
119
120
120
121
COMMENT ON TABLE proposal_review IS ' All Reviews.' ;
121
122
COMMENT ON COLUMN proposal_review.row_id IS ' Synthetic Unique Key.' ;
122
- COMMENT ON COLUMN proposal_review.proposal_id IS ' The Proposal id this review belongs to.' ;
123
- COMMENT ON COLUMN proposal_review.user_id IS ' The user id this review belongs to.' ;
124
- COMMENT ON COLUMN proposal_review.assessor IS ' Assessors Anonymized ID.' ;
123
+ COMMENT ON COLUMN proposal_review.proposal_id IS ' The Proposal this review is for.' ;
124
+ COMMENT ON COLUMN proposal_review.assessor IS ' Assessors Anonymized ID' ;
125
125
COMMENT ON COLUMN proposal_review.assessor_level IS ' Assessors level ID' ;
126
+ COMMENT ON COLUMN proposal_review.reward_address IS ' Assessors reward address' ;
126
127
127
128
COMMENT ON COLUMN proposal_review.impact_alignment_rating_given IS
128
- ' The numeric rating assigned to the proposal by the assessor.' ;
129
+ ' The numeric rating assigned to the proposal by the assessor.
130
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
129
131
COMMENT ON COLUMN proposal_review.impact_alignment_note IS
130
- ' A note about why the impact rating was given.' ;
132
+ ' A note about why the impact rating was given.
133
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
134
+
131
135
COMMENT ON COLUMN proposal_review.feasibility_rating_given IS
132
- ' The numeric feasibility rating given.' ;
136
+ ' The numeric feasibility rating given.
137
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
133
138
COMMENT ON COLUMN proposal_review.feasibility_note IS
134
- ' A note about why the feasibility rating was given.' ;
139
+ ' A note about why the feasibility rating was given.
140
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
141
+
135
142
COMMENT ON COLUMN proposal_review.auditability_rating_given IS
136
- ' The numeric auditability rating given.' ;
143
+ ' The numeric auditability rating given.
144
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
137
145
COMMENT ON COLUMN proposal_review.auditability_note IS
138
- ' A note about the auditability rating given.' ;
139
-
140
- COMMENT ON COLUMN proposal_review.allocated IS
141
- ' Describes if the review was part of the original reviewer allocation.
142
- ' ;
146
+ ' A note about the auditability rating given.
147
+ DEPRECATED: Only used for Vit-SS compatibility.' ;
143
148
144
149
COMMENT ON COLUMN proposal_review.ranking IS
145
150
' Numeric Measure of quality of this review according to veteran community advisors.
0 commit comments