Last active
April 1, 2019 02:16
-
-
Save sle-c/78054895fafc83a91cbba00ccfda9328 to your computer and use it in GitHub Desktop.
JWT Auth with Golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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