From 113eb1f6f8d0913a402ae60f5213ac2dc703700a Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 10:28:06 +0900 Subject: [PATCH 1/8] add MetaData class and ULID in Follow class Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index 6f35022..bbb7aec 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -13,9 +13,17 @@ classDiagram summary: String icon: String banner: String + meta_data: Vec[MetaData] } class Follow { - target: [AccountId | String] + id: ULID + target: [AccountId[long] | String] + } + class MetaData { + id: [AccountId[long]] + index: long + label: String + content: String } Account --|> Profile Account --|> Follow From 31e80f58b40e937f7d387ccae11bb4539fe35f34 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 11:47:18 +0900 Subject: [PATCH 2/8] Add arrow Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index bbb7aec..efa1a79 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -20,11 +20,12 @@ classDiagram target: [AccountId[long] | String] } class MetaData { - id: [AccountId[long]] + id: AccountId[long] index: long label: String content: String } Account --|> Profile Account --|> Follow + Profile --|> MetaData ``` From fd29b78c3eef95080febcc6cef1d67f277efa305 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 14:02:09 +0900 Subject: [PATCH 3/8] add is_bot flag Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index efa1a79..4332477 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -5,6 +5,7 @@ classDiagram class Account { id: long account_name: String + is_bot: bool profile: Profile follow: Vec[Follow] } From 75d22ea976a71efc7626b7832ccd195173c04159 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 19:22:57 +0900 Subject: [PATCH 4/8] add confidential class Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index 4332477..5332674 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -6,6 +6,7 @@ classDiagram id: long account_name: String is_bot: bool + confidential: Confidential profile: Profile follow: Vec[Follow] } @@ -26,6 +27,12 @@ classDiagram label: String content: String } + class Confidential { + id: AccountId[long] + mail: String + password: String + } + Account --|> Confidential Account --|> Profile Account --|> Follow Profile --|> MetaData From 001c0ada8948fd9485a4f08f438f9a66f2c08063 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 19:24:19 +0900 Subject: [PATCH 5/8] remove redundant fields Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index 5332674..3793163 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -22,13 +22,11 @@ classDiagram target: [AccountId[long] | String] } class MetaData { - id: AccountId[long] index: long label: String content: String } class Confidential { - id: AccountId[long] mail: String password: String } From 96b37985295120370e2cb9f80964c6bb9f2576f4 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 19:30:39 +0900 Subject: [PATCH 6/8] Extract Confidential class Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index 3793163..fa562f8 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -6,7 +6,6 @@ classDiagram id: long account_name: String is_bot: bool - confidential: Confidential profile: Profile follow: Vec[Follow] } @@ -27,10 +26,10 @@ classDiagram content: String } class Confidential { + id: AccountId[long] mail: String password: String } - Account --|> Confidential Account --|> Profile Account --|> Follow Profile --|> MetaData From bef5dd00335cef5b095e9ad6287d2e115bcd8a9f Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 19:45:15 +0900 Subject: [PATCH 7/8] remove index field in MetaData class Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index fa562f8..af5c2ae 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -21,7 +21,6 @@ classDiagram target: [AccountId[long] | String] } class MetaData { - index: long label: String content: String } From 01b1fe2743fb078f44109b1388ba6e69238e9157 Mon Sep 17 00:00:00 2001 From: turtton Date: Sun, 12 Feb 2023 20:32:28 +0900 Subject: [PATCH 8/8] add id in MetaData class Signed-off-by: turtton --- docs/shuttlepub-core/data-structure.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/shuttlepub-core/data-structure.md b/docs/shuttlepub-core/data-structure.md index af5c2ae..47e44dd 100644 --- a/docs/shuttlepub-core/data-structure.md +++ b/docs/shuttlepub-core/data-structure.md @@ -21,6 +21,7 @@ classDiagram target: [AccountId[long] | String] } class MetaData { + id: long label: String content: String }