feat: check if org exists (#480)

* feat: check if org exists

* feat: check if org exists

* Update internal/authz/repository/eventsourcing/eventstore/token_verifier.go

Co-authored-by: Silvan <[email protected]>

* fix: err handling

Co-authored-by: Silvan <[email protected]>
This commit is contained in:
Fabi
2020-07-16 13:27:36 +02:00
committed by GitHub
co-authored by Silvan
parent 423b86a03b
commit 5e00f1c9db
10 changed files with 152 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
BEGIN;
CREATE TABLE authz.orgs (
id TEXT,
creation_date TIMESTAMPTZ,
change_date TIMESTAMPTZ,
resource_owner TEXT,
org_state SMALLINT,
sequence BIGINT,
domain TEXT,
name TEXT,
PRIMARY KEY (id)
);
COMMIT;