15 lines
531 B
SQL
15 lines
531 B
SQL
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"); |