-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3fb860
commit c7c257f
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("POSTGRES_URL") | ||
} | ||
|
||
model Contact{ | ||
id Int @id @default(autoincrement()) | ||
phoneNumber String? | ||
email String? | ||
linkedId Int? | ||
linkPrecedence LinkPrecedence | ||
createdAt DateTime @default(now()) | ||
updatedAt DateTime @updatedAt | ||
deletedAt DateTime? | ||
@@index([phoneNumber]) | ||
@@index([email]) | ||
} | ||
|
||
enum LinkPrecedence{ | ||
secondary | ||
primary | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|