File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
cli/macrostrat/cli/subsystems/xdd/ref Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,46 @@ CREATE TABLE macrostrat_xdd.entity_type (
153153
154154ALTER TABLE macrostrat_xdd .entity_type OWNER TO " xdd-writer" ;
155155
156+ --
157+ -- Name: extraction_feedback_type; Type: TABLE; Schema: macrostrat_xdd; Owner: xdd-writer
158+ --
159+
160+ CREATE TABLE macrostrat_xdd .extraction_feedback_type (
161+ id serial primary key ,
162+ type text NOT NULL
163+ );
164+
165+
166+ ALTER TABLE macrostrat_xdd .extraction_feedback_type OWNER TO " xdd-writer" ;
167+
168+ --
169+ -- Name: extraction_feedback; Type: TABLE; Schema: macrostrat_xdd; Owner: xdd-writer
170+ --
171+
172+ CREATE TABLE macrostrat_xdd .extraction_feedback (
173+ id serial primary key ,
174+ user_id text NOT NULL ,
175+ paper_id uuid NOT NULL ,
176+ date timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL ,
177+ feedback_ids text ,
178+ custom_not text
179+ );
180+
181+
182+ ALTER TABLE macrostrat_xdd .extraction_feedback OWNER TO " xdd-writer" ;
183+
184+ --
185+ -- Name: extraction_feedback; Type: TABLE; Schema: macrostrat_xdd; Owner: xdd-writer
186+ --
187+
188+ CREATE TABLE macrostrat_xdd .extraction_feedback_link (
189+ feedback_id integer NOT NULL REFERENCES macrostrat_xdd .extraction_feedback (id) ON DELETE CASCADE ,
190+ type_id integer NOT NULL REFERENCES macrostrat_xdd .extraction_feedback_type (id) ON DELETE CASCADE ,
191+ PRIMARY KEY (feedback_id, type_id)
192+ );
193+
194+ ALTER TABLE macrostrat_xdd .extraction_feedback_link OWNER TO " xdd-writer" ;
195+
156196--
157197-- Name: entity_type_id_seq; Type: SEQUENCE; Schema: macrostrat_xdd; Owner: xdd-writer
158198--
You can’t perform that action at this time.
0 commit comments