* WS Events, Actions, Queries, Thread Follow, Post Query * i18n changes * Misc * Only unread threads are marked as read * Mark threads from WS even as visible in Global threads * Merge fixes * Update thread_post_list.tsx * Merge fix * Feedback fix * Make teamId in handleThreads optional for unfollowed threads * Removed unwated type and return * Review changes * Removing unused model * Merge fix * Misc fixes * Following button query change
21 lines
661 B
TypeScript
21 lines
661 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {tableSchema} from '@nozbe/watermelondb';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {THREAD} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: THREAD,
|
|
columns: [
|
|
{name: 'last_reply_at', type: 'number'},
|
|
{name: 'last_viewed_at', type: 'number'},
|
|
{name: 'is_following', type: 'boolean'},
|
|
{name: 'reply_count', type: 'number'},
|
|
{name: 'unread_replies', type: 'number'},
|
|
{name: 'unread_mentions', type: 'number'},
|
|
{name: 'viewed_at', type: 'number'},
|
|
],
|
|
});
|