mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
12 lines
541 B
SQL
12 lines
541 B
SQL
CREATE TABLE "actual"."rules" (
|
|
"id" varchar(36) PRIMARY KEY NOT NULL,
|
|
"stage" text,
|
|
"conditions" jsonb,
|
|
"actions" jsonb,
|
|
"tombstone" boolean DEFAULT false,
|
|
"conditions_op" text
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX "rules_stage_index" ON "actual"."rules" USING btree ("stage") WHERE "actual"."rules"."tombstone" IS FALSE;--> statement-breakpoint
|
|
CREATE INDEX "rules_conditions_index" ON "actual"."rules" USING gin ("conditions");--> statement-breakpoint
|
|
CREATE INDEX "rules_actions_index" ON "actual"."rules" USING gin ("actions"); |