 SET search_path = v0, pg_catalog;
 
 --
+-- Name: discussion_commentid_seq; Type: SEQUENCE; Schema: v0; Owner: postgres
+--
+
+CREATE SEQUENCE discussion_commentid_seq
+    START WITH 0
+    INCREMENT BY 1
+    MINVALUE 0
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE discussion_commentid_seq OWNER TO postgres;
+
+--
 -- Name: discussion; Type: TABLE; Schema: v0; Owner: postgres; Tablespace: 
 --
 
 CREATE TABLE discussion (
-    commentid integer NOT NULL,
+    commentid integer DEFAULT nextval('discussion_commentid_seq'::regclass) NOT NULL,
     userid integer NOT NULL,
     comment_ts timestamp without time zone NOT NULL,
     taskid integer NOT NULL,

ALTER TABLE discussion OWNER TO postgres;

--
-- Name: tags; Type: TABLE; Schema: v0; Owner: postgres; Tablespace: 
--

CREATE TABLE tags (
    tagid integer NOT NULL,
    label_en character varying(2044) NOT NULL,
    color character varying(3) DEFAULT '000'::character varying NOT NULL,
    text_bold boolean DEFAULT false NOT NULL,

ALTER TABLE task_state_tags OWNER TO postgres;

--
-- Name: task_states_stateid_seq; Type: SEQUENCE; Schema: v0; Owner: postgres
--

CREATE SEQUENCE task_states_stateid_seq
    START WITH 0
    INCREMENT BY 1
    MINVALUE 0
    NO MAXVALUE
    CACHE 1;


ALTER TABLE task_states_stateid_seq OWNER TO postgres;

--
-- Name: task_states; Type: TABLE; Schema: v0; Owner: postgres; Tablespace: 
--

CREATE TABLE task_states (
    stateid integer DEFAULT nextval('task_states_stateid_seq'::regclass) NOT NULL,
    label_en character varying(2044) NOT NULL,
    permissions json,
    attr_needs_attention boolean,
