feat(db): db stuff added in starting migration from old app

This commit is contained in:
2025-08-31 15:01:50 -05:00
parent f348e4e053
commit 2d5fbbbab0
11 changed files with 965 additions and 36 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE "settings" (
"settings_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text NOT NULL,
"value" text NOT NULL,
"description" text,
"moduleName" text,
"active" boolean DEFAULT true,
"roles" jsonb DEFAULT '["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 "name" ON "settings" USING btree ("name");