Skip to content

Instantly share code, notes, and snippets.

@sle-c
Last active April 1, 2019 02:16
Show Gist options
  • Save sle-c/78054895fafc83a91cbba00ccfda9328 to your computer and use it in GitHub Desktop.
Save sle-c/78054895fafc83a91cbba00ccfda9328 to your computer and use it in GitHub Desktop.
JWT Auth with Golang
CREATE TABLE apps (
id SERIAL PRIMARY KEY,
name character varying,
public_key character varying,
encrypted_secret_key character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
-- enhance query performance and enforce uniqueness
CREATE UNIQUE INDEX apps_public_key ON apps(public_key text_ops);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment