Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,990 changes: 0 additions & 4,990 deletions backend/drizzle/20260216065612_immutability_setup/snapshot.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ CREATE TABLE "inactive_memberships" (
"rejected_at" timestamp,
"created_by" varchar(50) NOT NULL,
"organization_id" varchar(50) NOT NULL,
"organization_slug" varchar(255),
CONSTRAINT "inactive_memberships_tenant_email_ctx" UNIQUE NULLS NOT DISTINCT("tenant_id","email","context_type","organization_id")
);
--> statement-breakpoint
Expand All @@ -97,6 +98,7 @@ CREATE TABLE "memberships" (
"muted" boolean DEFAULT false NOT NULL,
"display_order" double precision NOT NULL,
"organization_id" varchar(50) NOT NULL,
"organization_slug" varchar(255),
CONSTRAINT "memberships_tenant_user_ctx" UNIQUE NULLS NOT DISTINCT("tenant_id","user_id","context_type","organization_id")
);
--> statement-breakpoint
Expand Down Expand Up @@ -300,10 +302,12 @@ CREATE INDEX "inactive_memberships_organization_id_idx" ON "inactive_memberships
CREATE INDEX "inactive_memberships_tenant_id_idx" ON "inactive_memberships" ("tenant_id");--> statement-breakpoint
CREATE INDEX "inactive_memberships_email_idx" ON "inactive_memberships" ("email");--> statement-breakpoint
CREATE INDEX "inactive_memberships_org_pending_idx" ON "inactive_memberships" ("organization_id","rejected_at");--> statement-breakpoint
CREATE INDEX "inactive_memberships_organizationSlug_idx" ON "inactive_memberships" ("organization_slug");--> statement-breakpoint
CREATE INDEX "memberships_user_id_idx" ON "memberships" ("user_id");--> statement-breakpoint
CREATE INDEX "memberships_organization_id_idx" ON "memberships" ("organization_id");--> statement-breakpoint
CREATE INDEX "memberships_tenant_id_idx" ON "memberships" ("tenant_id");--> statement-breakpoint
CREATE INDEX "memberships_context_org_role_idx" ON "memberships" ("context_type","organization_id","role");--> statement-breakpoint
CREATE INDEX "memberships_organizationSlug_idx" ON "memberships" ("organization_slug");--> statement-breakpoint
CREATE INDEX "organizations_name_index" ON "organizations" ("name" DESC NULLS LAST);--> statement-breakpoint
CREATE INDEX "organizations_created_at_index" ON "organizations" ("created_at" DESC NULLS LAST);--> statement-breakpoint
CREATE INDEX "organizations_tenant_id_index" ON "organizations" ("tenant_id");--> statement-breakpoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "8",
"dialect": "postgres",
"id": "020657e5-1020-4f24-bbc7-c1e715521e04",
"id": "61002ab9-5a20-41e2-9e1e-563371cb446d",
"prevIds": [
"00000000-0000-0000-0000-000000000000"
],
Expand Down Expand Up @@ -922,6 +922,19 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(50)",
"typeSchema": null,
Expand Down Expand Up @@ -1117,6 +1130,19 @@
"schema": "public",
"table": "memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "memberships"
},
{
"type": "timestamp",
"typeSchema": null,
Expand Down Expand Up @@ -3204,6 +3230,27 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "inactive_memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down Expand Up @@ -3302,6 +3349,27 @@
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "8",
"dialect": "postgres",
"id": "020657e5-1020-4f24-bbc7-c1e715521e04",
"id": "61002ab9-5a20-41e2-9e1e-563371cb446d",
"prevIds": [
"00000000-0000-0000-0000-000000000000"
],
Expand Down Expand Up @@ -922,6 +922,19 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(50)",
"typeSchema": null,
Expand Down Expand Up @@ -1117,6 +1130,19 @@
"schema": "public",
"table": "memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "memberships"
},
{
"type": "timestamp",
"typeSchema": null,
Expand Down Expand Up @@ -3204,6 +3230,27 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "inactive_memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down Expand Up @@ -3302,6 +3349,27 @@
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "8",
"dialect": "postgres",
"id": "020657e5-1020-4f24-bbc7-c1e715521e04",
"id": "61002ab9-5a20-41e2-9e1e-563371cb446d",
"prevIds": [
"00000000-0000-0000-0000-000000000000"
],
Expand Down Expand Up @@ -922,6 +922,19 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "inactive_memberships"
},
{
"type": "varchar(50)",
"typeSchema": null,
Expand Down Expand Up @@ -1117,6 +1130,19 @@
"schema": "public",
"table": "memberships"
},
{
"type": "varchar(255)",
"typeSchema": null,
"notNull": false,
"dimensions": 0,
"default": null,
"generated": null,
"identity": null,
"name": "organization_slug",
"entityType": "columns",
"schema": "public",
"table": "memberships"
},
{
"type": "timestamp",
"typeSchema": null,
Expand Down Expand Up @@ -3204,6 +3230,27 @@
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "inactive_memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "inactive_memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down Expand Up @@ -3302,6 +3349,27 @@
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
{
"value": "organization_slug",
"isExpression": false,
"asc": true,
"nullsFirst": false,
"opclass": null
}
],
"isUnique": false,
"where": null,
"with": "",
"method": "btree",
"concurrently": false,
"name": "memberships_organizationSlug_idx",
"entityType": "indexes",
"schema": "public",
"table": "memberships"
},
{
"nameExplicit": true,
"columns": [
Expand Down
Loading
Loading