feat(db): db stuff added in starting migration from old app
This commit is contained in:
15
migrations/0000_wonderful_eternals.sql
Normal file
15
migrations/0000_wonderful_eternals.sql
Normal 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");
|
||||
Reference in New Issue
Block a user