Skip to content

Commit

Permalink
fix enum display
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjana-singhania committed Jan 26, 2025
1 parent 8c9d2b2 commit cfa06c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/db/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import { PrismaClient, ReferralSource } from "@prisma/client";
import type { ReferralSource as PrismaReferralSource } from "@prisma/client";
import { PrismaClient } from "@prisma/client";

export const prisma = new PrismaClient();

export { ReferralSource };
export const ReferralSource: Record<PrismaReferralSource, string> = {
FRIEND: "Friend",
COLLEAGUE: "Colleague",
GREEN_LINE_RECORDS: "Green Line Records",
SOCIAL_MEDIA: "Social Media",
OTHER: "Other",
} as const;

export type ReferralType = keyof typeof ReferralSource;

0 comments on commit cfa06c5

Please sign in to comment.