From de45dcb1fc1ac807567264561d219dad3636a43c Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 15 Nov 2021 14:24:57 +0100 Subject: [PATCH] create chat index table --- src/sqlite/chat_index.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/sqlite/chat_index.sql diff --git a/src/sqlite/chat_index.sql b/src/sqlite/chat_index.sql new file mode 100644 index 0000000..21e48b0 --- /dev/null +++ b/src/sqlite/chat_index.sql @@ -0,0 +1,8 @@ +-- chat index table +CREATE TABLE IF NOT EXISTS chat_index ( + id TEXT NOT NULL, + is_group_chat BOOLEAN DEFAULT 0 NOT NULL CHECK (is_group_chat IN (0, 1)), + title TEXT NOT NULL, + description TEXT, + users TEXT NOT NULL +); \ No newline at end of file