From 95bfb260110a47fe6722e0812554459e07deaede Mon Sep 17 00:00:00 2001 From: Namekuji Date: Fri, 8 Sep 2023 02:33:23 -0400 Subject: [PATCH] wip: adding table struct --- .../native-utils/scylla-migration/src/setup.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/backend/native-utils/scylla-migration/src/setup.rs b/packages/backend/native-utils/scylla-migration/src/setup.rs index aaa4cbeded..c3769065a3 100644 --- a/packages/backend/native-utils/scylla-migration/src/setup.rs +++ b/packages/backend/native-utils/scylla-migration/src/setup.rs @@ -171,5 +171,17 @@ struct NoteTable { has_poll: bool, poll: PollType, #[scylla_crate(rename = "threadId")] - thread_id: String, + thread_id: Option, + #[scylla_crate(rename = "channelId")] + channel_id: Option, + #[scylla_crate(rename = "userId")] + user_id: String, + #[scylla_crate(rename = "userHost")] + user_host: String, + #[scylla_crate(rename = "replyId")] + reply_id: Option, + #[scylla_crate(rename = "replyUserId")] + reply_user_id: Option, + #[scylla_crate(rename = "replyUserHost")] + reply_user_host: Option, }