chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:32:57 +08:00
commit cd420f9332
4811 changed files with 884702 additions and 0 deletions
@@ -0,0 +1,37 @@
import type { Prisma } from "~/db.server";
export function scheduleUniqWhereClause(
projectId: string,
scheduleId: string
): Prisma.TaskScheduleWhereUniqueInput {
if (scheduleId.startsWith("sched_")) {
return {
friendlyId: scheduleId,
projectId,
};
}
return {
projectId_deduplicationKey: {
projectId,
deduplicationKey: scheduleId,
},
};
}
export function scheduleWhereClause(
projectId: string,
scheduleId: string
): Prisma.TaskScheduleWhereInput {
if (scheduleId.startsWith("sched_")) {
return {
friendlyId: scheduleId,
projectId,
};
}
return {
projectId,
deduplicationKey: scheduleId,
};
}