     SELECT encode(digest(gen_random_bytes(128), 'sha256'), 'hex')
       INTO token;
 
-    INSERT INTO projects_share (project, token)
+    INSERT INTO project_shares (project, token)
     VALUES (NEW.id, token);
 
     RETURN NEW;

 BEFORE UPDATE ON projects
  FOR EACH ROW EXECUTE PROCEDURE update_modified_at();

CREATE TRIGGER projects_share_modified_at_tgr
 BEFORE UPDATE ON projects_share
  FOR EACH ROW EXECUTE PROCEDURE update_modified_at();

-- Indexes

  name text NOT NULL
) WITH (OIDS=FALSE);

CREATE TABLE IF NOT EXISTS project_shares (
  id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
  project uuid REFERENCES projects(id),
  created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
  modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
  token text
