Skip to content

Commit e5e9366

Browse files
committed
update: 최소한의 db 모델만 남기고 삭제
1 parent 572e2b2 commit e5e9366

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

prisma/schema.prisma

+11-26
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,23 @@ datasource db {
77
url = env("DATABASE_URL")
88
}
99

10-
enum IdentityProvider {
11-
GOOGLE @map("google")
12-
KAKAO @map("kakao")
13-
APPLE @map("apple")
14-
}
15-
16-
enum UserPermissionRole {
17-
USER @map("user")
18-
ADMIN @map("admin")
19-
}
20-
2110
enum UserGender {
2211
MALE @map("male")
2312
FEMALE @map("female")
2413
}
2514

2615
model User {
27-
id Int @id @default(autoincrement())
28-
username String? @unique
29-
name String
30-
gender UserGender
31-
phone String
32-
email String @unique
33-
emailVerified DateTime?
34-
password String?
35-
avatar String?
36-
createdDate DateTime @default(now())
37-
updatedDate DateTime?
38-
identityProvider IdentityProvider
39-
identityProviderId String?
40-
role UserPermissionRole @default(USER)
41-
posts Post[]
16+
id Int @id @default(autoincrement())
17+
username String? @unique
18+
name String
19+
gender UserGender
20+
phone String
21+
email String @unique
22+
password String
23+
avatar String?
24+
createdDate DateTime @default(now())
25+
updatedDate DateTime?
26+
posts Post[]
4227
}
4328

4429
model Post {

0 commit comments

Comments
 (0)