Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
modify: チャンネルがネストするように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Daaaai0809 committed Dec 30, 2023
1 parent 37aee10 commit 7cda7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ProviderType {
Channel {
string id "PK"
string name ""
string parent_channel_id "FK"
string created_at ""
string deleted_at "IDX"
}
Expand All @@ -49,7 +50,6 @@ Message {
string channel_id "FK"
string user_id "FK"
string reply_to_id "FK"
string thread_id "FK"
string content ""
string created_at ""
string updated_at ""
Expand All @@ -76,12 +76,12 @@ User ||--o{ ChannelUser : "1"
ProviderTypeUser }o--|| ProviderType : "1"
Channel ||--o{ Message : "1"
Channel ||--o{ Channel : "Nest(parent_channle_id)"
ChannelUser }o--|| Channel : "1"
Message }o--|| User : "1"
Message ||--o{ Reaction : "1"
Message ||--o{ Message : "Reply(reply_to_id)"
Message ||--o{ Message : "Reply to Threads(thread_id)"
Message ||--o{ MessageReaction : "1"
Message ||--o{ MessageReaction : "1"
Expand Down

0 comments on commit 7cda7ac

Please sign in to comment.