I'm trying to see if this speeds up builds a bit. May not without a module boundary, but for now it's nice organization to have as the program grows.
12 lines
268 B
SQL
12 lines
268 B
SQL
-- +goose Up
|
|
CREATE TABLE oauth_token (
|
|
id SERIAL PRIMARY KEY,
|
|
access_token TEXT NOT NULL,
|
|
expires TIMESTAMP NOT NULL,
|
|
refresh_token TEXT NOT NULL,
|
|
username TEXT NOT NULL,
|
|
user_id INTEGER REFERENCES user_ (id) NOT NULL
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE oauth_token;
|