----------------------------------------------------------------------
-- Setup query strings
----------------------------------------------------------------------

createTableQuery :: Query
createTableQuery =
  "CREATE TABLE scheduled_jobs (\n\
  \  id bigserial PRIMARY KEY,\n\
  \  q_name text NOT NULL CHECK(length(q_name) > 0),\n\
  \  method text NOT NULL CHECK(length(method) > 0),\n\
  \  args json NOT NULL,\n\
  \  created_at timestamptz DEFAULT now(),\n\
  \  next_push_at timestamptz\n\
  \);\n\
  \ "
createTableQuery :: Query
createTableQuery =
  "CREATE TABLE scheduled_jobs (\n\
  \  id bigserial PRIMARY KEY,\n\
  \  q_name text NOT NULL CHECK(length(q_name) > 0),\n\
  \  method text NOT NULL CHECK(length(method) > 0),\n\
  \  args json NOT NULL,\n\
  \  created_at timestamptz DEFAULT now(),\n\
  \  next_push_at timestamptz\n\
  \);\n\
  \ "
createTableQuery =
  "CREATE TABLE scheduled_jobs (\n\
  \  id bigserial PRIMARY KEY,\n\
  \  q_name text NOT NULL CHECK(length(q_name) > 0),\n\
  \  method text NOT NULL CHECK(length(method) > 0),\n\
  \  args json NOT NULL,\n\
  \  created_at timestamptz DEFAULT now(),\n\
  \  next_push_at timestamptz\n\
  \);\n\
  \ "