@authhero/drizzle 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drizzle-adapter.cjs +2 -2
- package/dist/drizzle-adapter.mjs +969 -757
- package/drizzle/0001_scim_inbound_provisioning.sql +34 -0
- package/drizzle/0002_user_blocked.sql +1 -0
- package/drizzle/0003_prompt_settings_last_used.sql +1 -0
- package/drizzle/0004_action_executions_created_at_index.sql +1 -0
- package/drizzle/meta/0001_snapshot.json +6563 -0
- package/drizzle/meta/0002_snapshot.json +6570 -0
- package/drizzle/meta/0003_snapshot.json +6578 -0
- package/drizzle/meta/0004_snapshot.json +6586 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +3 -3
- package/src/schema/sqlite/actions.ts +1 -0
- package/src/schema/sqlite/branding.ts +5 -0
- package/src/schema/sqlite/index.ts +3 -0
- package/src/schema/sqlite/scim.ts +79 -0
- package/src/schema/sqlite/users.ts +2 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
CREATE TABLE `scim_configurations` (
|
|
2
|
+
`connection_id` text(255) NOT NULL,
|
|
3
|
+
`tenant_id` text(255) NOT NULL,
|
|
4
|
+
`user_id_attribute` text(255) DEFAULT 'externalId' NOT NULL,
|
|
5
|
+
`mapping` text(16384) DEFAULT '[]' NOT NULL,
|
|
6
|
+
`created_at` text(35) NOT NULL,
|
|
7
|
+
`updated_at` text(35) NOT NULL,
|
|
8
|
+
PRIMARY KEY(`tenant_id`, `connection_id`)
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
CREATE TABLE `scim_external_ids` (
|
|
12
|
+
`tenant_id` text(255) NOT NULL,
|
|
13
|
+
`connection_id` text(255) NOT NULL,
|
|
14
|
+
`external_id` text(255) NOT NULL,
|
|
15
|
+
`user_id` text(255) NOT NULL,
|
|
16
|
+
`created_at` text(35) NOT NULL,
|
|
17
|
+
PRIMARY KEY(`tenant_id`, `connection_id`, `user_id`)
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
CREATE UNIQUE INDEX `scim_external_ids_connection_external_idx` ON `scim_external_ids` (`tenant_id`,`connection_id`,`external_id`);--> statement-breakpoint
|
|
21
|
+
CREATE TABLE `scim_tokens` (
|
|
22
|
+
`token_id` text(64) NOT NULL,
|
|
23
|
+
`tenant_id` text(255) NOT NULL,
|
|
24
|
+
`connection_id` text(255) NOT NULL,
|
|
25
|
+
`token_hash` text(128) NOT NULL,
|
|
26
|
+
`scopes` text(4096) DEFAULT '[]' NOT NULL,
|
|
27
|
+
`valid_until` text(35),
|
|
28
|
+
`created_at` text(35) NOT NULL,
|
|
29
|
+
`last_used_at` text(35),
|
|
30
|
+
PRIMARY KEY(`tenant_id`, `token_id`)
|
|
31
|
+
);
|
|
32
|
+
--> statement-breakpoint
|
|
33
|
+
CREATE INDEX `scim_tokens_tenant_connection_idx` ON `scim_tokens` (`tenant_id`,`connection_id`);--> statement-breakpoint
|
|
34
|
+
CREATE UNIQUE INDEX `scim_tokens_tenant_hash_idx` ON `scim_tokens` (`tenant_id`,`token_hash`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `users` ADD `blocked` integer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `prompt_settings` ADD `show_last_used_connection` integer DEFAULT false NOT NULL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CREATE INDEX `action_executions_created_at_ts_index` ON `action_executions` (`created_at_ts`);
|