13 lines
330 B
SQL
13 lines
330 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE users (
|
|
id SERIAL PRIMARY KEY,
|
|
idp_sub VARCHAR(36) UNIQUE NOT NULL, -- is this long enough for other IDPs? Keycloak gives a UUID
|
|
username VARCHAR(50) NOT NULL
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE users;
|
|
-- +goose StatementEnd
|