Skip to content

Commit

Permalink
add contact model
Browse files Browse the repository at this point in the history
  • Loading branch information
abhayrp2000 committed Jul 14, 2023
1 parent d3fb860 commit c7c257f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/models/schema.prisma
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
}















0 comments on commit c7c257f

Please sign in to comment.