@authhero/drizzle 1.0.0 → 1.1.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.
@@ -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;