Skip to content

Commit

Permalink
modify: update database.dbml
Browse files Browse the repository at this point in the history
  • Loading branch information
GanghyeonSeo committed Jun 2, 2024
1 parent 0efd0c2 commit 354bd61
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ERD/database.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Table "user" {

Indexes {
loginId [unique, name: "user_loginId_key"]
name [unique, name: "user_name_key"]
}
}

Expand All @@ -29,14 +30,25 @@ Table "file" {
}

Table "content" {
"title" text
"title" text [not null]
"body" text [not null]
"created_at" timestamp(3) [not null, default: `CURRENT_TIMESTAMP`]
"post_id" integer [pk, not null]
}

Table "lookbook" {
"id" serial [pk, increment]
"created_at" timestamp(3) [not null, default: `CURRENT_TIMESTAMP`]
"deleted_at" timestamp(3)
"author_id" uuid [not null]
"prompt" text [not null]
"imageUrl" text [not null]
}

Ref:"user"."uuid" < "post"."author_id" [update: cascade, delete: restrict]

Ref:"post"."id" < "file"."post_id" [update: cascade, delete: restrict]

Ref:"post"."id" < "content"."post_id" [update: cascade, delete: restrict]

Ref:"user"."uuid" < "lookbook"."author_id" [update: cascade, delete: restrict]

0 comments on commit 354bd61

Please sign in to comment.