This commit is contained in:
phaichayon
2026-06-22 20:07:51 +07:00
parent ffa5de8311
commit 5c28080e9b
25 changed files with 1726 additions and 269 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS "crm_report_definitions" (
"id" text PRIMARY KEY NOT NULL,
"organization_id" text NOT NULL,
"code" text NOT NULL,
"name" text NOT NULL,
"description" text,
"category" text NOT NULL,
"is_system" boolean DEFAULT true NOT NULL,
"is_active" boolean DEFAULT true NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS "crm_report_definitions_org_code_idx"
ON "crm_report_definitions" ("organization_id", "code");

View File

@@ -127,6 +127,13 @@
"when": 1782121929212,
"tag": "0017_short_swordsman",
"breakpoints": true
},
{
"idx": 18,
"version": "7",
"when": 1782799200000,
"tag": "0018_report_foundation",
"breakpoints": true
}
]
}
}