text: --
  -- bcda_queue schema as of 2020-10-01
  --
  
  BEGIN;
  
  --
  -- Name: que_jobs; Type: TABLE; Schema: public; 
  --
  
  CREATE TABLE public.que_jobs (
      priority smallint DEFAULT 100 NOT NULL,
      run_at timestamp with time zone DEFAULT now() NOT NULL,
      job_id bigint NOT NULL,
      job_class text NOT NULL,
      args json DEFAULT '[]'::json NOT NULL,
      error_count integer DEFAULT 0 NOT NULL,
      last_error text,
      queue text DEFAULT ''::text NOT NULL
  );
  
  
  --
  -- Name: TABLE que_jobs; Type: COMMENT; Schema: public; 
  --
  
  COMMENT ON TABLE public.que_jobs IS '3';
  
  
  --
  -- Name: que_jobs_job_id_seq; Type: SEQUENCE; Schema: public; 
  --
  
  CREATE SEQUENCE public.que_jobs_job_id_seq
      START WITH 1
      INCREMENT BY 1
      NO MINVALUE
      NO MAXVALUE
      CACHE 1;
  
  
  --
  -- Name: que_jobs_job_id_seq; Type: SEQUENCE OWNED BY; Schema: public; 
  --
  
  ALTER SEQUENCE public.que_jobs_job_id_seq OWNED BY public.que_jobs.job_id;
  
  
  --
  -- Name: que_jobs job_id; Type: DEFAULT; Schema: public; 
  --
  
  ALTER TABLE ONLY public.que_jobs ALTER COLUMN job_id SET DEFAULT nextval('public.que_jobs_job_id_seq'::regclass);
  
  
  --
  -- Name: que_jobs que_jobs_pkey; Type: CONSTRAINT; Schema: public; 
  --
  
  ALTER TABLE ONLY public.que_jobs
      ADD CONSTRAINT que_jobs_pkey PRIMARY KEY (queue, priority, run_at, job_id);
  
  COMMIT;