Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit dbeae2a

Browse files
authored
Merge pull request #5 from clerkinc/post-clean-up
Removing Auth properties from Prisma
2 parents a685f24 + 76f4d8c commit dbeae2a

File tree

1 file changed

+1
-49
lines changed

1 file changed

+1
-49
lines changed

packages/db/prisma/schema.prisma

+1-49
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generator client {
66
}
77

88
datasource db {
9-
provider = "postgresql"
9+
provider = "sqlite"
1010
url = env("DATABASE_URL")
1111
}
1212

@@ -15,51 +15,3 @@ model Post {
1515
title String
1616
content String
1717
}
18-
19-
// NextAuth.js Models
20-
// NOTE: When using postgresql, mysql or sqlserver,
21-
// uncomment the @db.Text annotations below
22-
// @see https://next-auth.js.org/schemas/models
23-
model Account {
24-
id String @id @default(cuid())
25-
userId String
26-
type String
27-
provider String
28-
providerAccountId String
29-
refresh_token String? // @db.Text
30-
access_token String? // @db.Text
31-
expires_at Int?
32-
token_type String?
33-
scope String?
34-
id_token String? // @db.Text
35-
session_state String?
36-
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
37-
38-
@@unique([provider, providerAccountId])
39-
}
40-
41-
model Session {
42-
id String @id @default(cuid())
43-
sessionToken String @unique
44-
userId String
45-
expires DateTime
46-
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
47-
}
48-
49-
model User {
50-
id String @id @default(cuid())
51-
name String?
52-
email String? @unique
53-
emailVerified DateTime?
54-
image String?
55-
accounts Account[]
56-
sessions Session[]
57-
}
58-
59-
model VerificationToken {
60-
identifier String
61-
token String @unique
62-
expires DateTime
63-
64-
@@unique([identifier, token])
65-
}

0 commit comments

Comments
 (0)