task-i
This commit is contained in:
30
drizzle/0009_lazy_shard.sql
Normal file
30
drizzle/0009_lazy_shard.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
CREATE TABLE "crm_document_artifacts" (
|
||||
"id" text PRIMARY KEY NOT NULL,
|
||||
"organization_id" text NOT NULL,
|
||||
"entity_type" text NOT NULL,
|
||||
"entity_id" text NOT NULL,
|
||||
"document_type" text NOT NULL,
|
||||
"artifact_type" text NOT NULL,
|
||||
"template_version_id" text,
|
||||
"storage_provider" text NOT NULL,
|
||||
"storage_key" text NOT NULL,
|
||||
"file_name" text NOT NULL,
|
||||
"content_type" text NOT NULL,
|
||||
"file_size" integer,
|
||||
"checksum" text,
|
||||
"status" text DEFAULT 'active' NOT NULL,
|
||||
"generated_by" text NOT NULL,
|
||||
"generated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"locked_at" timestamp with time zone,
|
||||
"locked_by" text,
|
||||
"voided_at" timestamp with time zone,
|
||||
"voided_by" text,
|
||||
"void_reason" text,
|
||||
"metadata" jsonb,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"deleted_at" timestamp with time zone
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "memberships" ALTER COLUMN "business_role" SET DEFAULT 'sales_support';--> statement-breakpoint
|
||||
ALTER TABLE "crm_quotations" ADD COLUMN "approved_artifact_id" text;
|
||||
3192
drizzle/meta/0009_snapshot.json
Normal file
3192
drizzle/meta/0009_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -64,6 +64,13 @@
|
||||
"when": 1781595962545,
|
||||
"tag": "0008_clean_justin_hammer",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 9,
|
||||
"version": "7",
|
||||
"when": 1781603421415,
|
||||
"tag": "0009_lazy_shard",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user