@@ -99,47 +99,52 @@ COMMENT ON COLUMN reviewer_level.event_id IS 'The specific Event ID this review
9999CREATE TABLE proposal_review (
100100 row_id SERIAL PRIMARY KEY ,
101101 proposal_id INTEGER NOT NULL ,
102- user_id INTEGER NOT NULL ,
103102 assessor VARCHAR NOT NULL ,
104103 assessor_level INTEGER ,
104+ reward_address TEXT ,
105105
106+ -- These fields are deprecated and WILL BE removed in a future migration.
107+ -- They MUST only be used for Vit-SS compatibility.
106108 impact_alignment_rating_given INTEGER ,
107109 impact_alignment_note VARCHAR ,
108110 feasibility_rating_given INTEGER ,
109111 feasibility_note VARCHAR ,
110112 auditability_rating_given INTEGER ,
111113 auditability_note VARCHAR ,
112- allocated INTEGER ,
113114 ranking INTEGER ,
114115 flags JSONB NULL ,
115116
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
118119);
119120
120121COMMENT ON TABLE proposal_review IS ' All Reviews.' ;
121122COMMENT 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' ;
125125COMMENT ON COLUMN proposal_review.assessor_level IS ' Assessors level ID' ;
126+ COMMENT ON COLUMN proposal_review.reward_address IS ' Assessors reward address' ;
126127
127128COMMENT 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.' ;
129131COMMENT 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+
131135COMMENT 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.' ;
133138COMMENT 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+
135142COMMENT 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.' ;
137145COMMENT 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.' ;
143148
144149COMMENT ON COLUMN proposal_review.ranking IS
145150' Numeric Measure of quality of this review according to veteran community advisors.
0 commit comments