feat: add global auth settings and pending users
This commit is contained in:
17
drizzle/0002_equal_bishop.sql
Normal file
17
drizzle/0002_equal_bishop.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE "system_settings" (
|
||||
"id" text PRIMARY KEY DEFAULT 'global' NOT NULL,
|
||||
"registration_enabled" boolean DEFAULT true NOT NULL,
|
||||
"oidc_enabled" boolean DEFAULT false NOT NULL,
|
||||
"oidc_issuer_url" text DEFAULT '' NOT NULL,
|
||||
"oidc_client_id" text DEFAULT '' NOT NULL,
|
||||
"oidc_client_secret" text DEFAULT '' NOT NULL,
|
||||
"oidc_scopes" text DEFAULT 'openid profile email' NOT NULL,
|
||||
"oidc_redirect_uri" text DEFAULT '' NOT NULL,
|
||||
"oidc_avatar_claim" text DEFAULT 'picture' NOT NULL,
|
||||
"oidc_auto_provision" boolean DEFAULT false NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "accounts" ADD COLUMN "avatar_url" text DEFAULT '' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "organizations" ADD COLUMN "oidc_avatar_claim" text DEFAULT 'picture' NOT NULL;
|
||||
2098
drizzle/meta/0002_snapshot.json
Normal file
2098
drizzle/meta/0002_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,6 +15,13 @@
|
||||
"when": 1782994149630,
|
||||
"tag": "0001_tired_queen_noir",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "7",
|
||||
"when": 1782998189463,
|
||||
"tag": "0002_equal_bishop",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user