feat(produser): added the ability to add a prod user by default roles and update if already there

This commit is contained in:
2025-06-09 16:42:49 -05:00
parent ed44b11e5c
commit ad4c9502fa
12 changed files with 2505 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE "prodPermissions" (
"prodPerm_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text NOT NULL,
"description" text NOT NULL,
"roles" jsonb DEFAULT '[]'::jsonb,
"rolesLegacy" jsonb DEFAULT '[]'::jsonb,
"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 "prodPermName" ON "prodPermissions" USING btree ("name");

File diff suppressed because it is too large Load Diff

View File

@@ -456,6 +456,13 @@
"when": 1748464203006,
"tag": "0064_aberrant_blindfold",
"breakpoints": true
},
{
"idx": 65,
"version": "7",
"when": 1749492130639,
"tag": "0065_nappy_talos",
"breakpoints": true
}
]
}