delete resource policy endpoint

This commit is contained in:
Fred KISSIE
2026-03-06 22:39:44 +01:00
parent bcd6cd99cc
commit 9b43948fa4
5 changed files with 109 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ export const resources = pgTable("resources", {
resourceId: serial("resourceId").primaryKey(),
resourcePolicyId: integer("resourcePolicyId").references(
() => resourcePolicies.resourcePolicyId,
{ onDelete: "cascade" }
{ onDelete: "set null" }
),
resourceGuid: varchar("resourceGuid", { length: 36 })
.unique()