refactor(modules): moved modules to app to control everything based on there active setting

This commit is contained in:
2025-10-29 21:57:11 -05:00
parent 6493e0398a
commit 99b2d762d6
35 changed files with 5807 additions and 121 deletions

View File

@@ -0,0 +1,23 @@
CREATE TABLE "forecast_Data" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"customer_article_number" text,
"date_requested" timestamp DEFAULT now(),
"quantity" real,
"request_date" timestamp NOT NULL,
"article" integer,
"customer_id" integer NOT NULL,
"created_at" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "modules" (
"module_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text NOT NULL,
"active" boolean DEFAULT false,
"roles" jsonb DEFAULT '["view","systemAdmin"]'::jsonb NOT NULL,
"add_User" text DEFAULT 'LST_System' NOT NULL,
"add_Date" timestamp DEFAULT now(),
"upd_User" text DEFAULT 'LST_System' NOT NULL,
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE UNIQUE INDEX "module_name" ON "modules" USING btree ("name");

View File

@@ -0,0 +1 @@
ALTER TABLE "modules" ADD COLUMN "category" text;

View File

@@ -0,0 +1,2 @@
ALTER TABLE "modules" ADD COLUMN "icon" text;--> statement-breakpoint
ALTER TABLE "modules" ADD COLUMN "link" text;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -148,6 +148,27 @@
"when": 1760703799708,
"tag": "0020_conscious_hairball",
"breakpoints": true
},
{
"idx": 21,
"version": "7",
"when": 1761776315202,
"tag": "0021_motionless_ezekiel",
"breakpoints": true
},
{
"idx": 22,
"version": "7",
"when": 1761780723108,
"tag": "0022_old_next_avengers",
"breakpoints": true
},
{
"idx": 23,
"version": "7",
"when": 1761781568161,
"tag": "0023_minor_marvel_zombies",
"breakpoints": true
}
]
}