ADD CROSS DOMAIN SUPPORT

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-06-26 22:35:29 +02:00
parent a0c8199474
commit 41143ca5f8
26 changed files with 514 additions and 126 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "clients" ADD COLUMN "crossDomain" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -171,6 +171,7 @@ model Client {
organization Organization? @relation(fields: [organizationId], references: [id])
organizationId String?
cors String?
crossDomain Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt

View File

@@ -16,5 +16,8 @@ export async function getClientsByOrganizationSlug(organizationSlug: string) {
include: {
project: true,
},
orderBy: {
createdAt: 'asc',
},
});
}