I had to remove the submodule because of the go bug at https://github.com/golang/go/issues/77196 I found the bug because of a bug in bob itself https://github.com/stephenafamo/bob/issues/610 This was because I'm trying to save data about the Arcgis user for use in determining if I can set up hooks to avoid the polling for data changes.
28 lines
729 B
SQL
28 lines
729 B
SQL
-- +goose Up
|
|
CREATE SCHEMA arcgis;
|
|
CREATE TABLE arcgis.user_ (
|
|
access TEXT NOT NULL,
|
|
created TIMESTAMP WITHOUT TIME ZONE NOT NULL,
|
|
email TEXT NOT NULL,
|
|
full_name TEXT NOT NULL,
|
|
id TEXT NOT NULL,
|
|
level TEXT NOT NULL,
|
|
org_id TEXT NOT NULL,
|
|
public_user_id INTEGER NOT NULL REFERENCES public.user_(id),
|
|
region TEXT NOT NULL,
|
|
role TEXT NOT NULL,
|
|
role_id TEXT NOT NULL,
|
|
username TEXT NOT NULL,
|
|
user_license_type_id TEXT NOT NULL,
|
|
user_type TEXT NOT NULL,
|
|
PRIMARY KEY (id)
|
|
);
|
|
CREATE TABLE arcgis.user_privilege (
|
|
user_id TEXT NOT NULL REFERENCES arcgis.user_(id),
|
|
privilege TEXT NOT NULL,
|
|
PRIMARY KEY(user_id, privilege)
|
|
);
|
|
-- +goose Down
|
|
DROP TABLE arcgis.user_privilege;
|
|
DROP TABLE arcgis.user_;
|
|
DROP SCHEMA arcgis;
|