forked from Ivasoft/mattermost-mobile
* Allow multiple posts in thread and posts in channel for a specific root or channel * Apply suggestions from code review Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
18 lines
484 B
TypeScript
18 lines
484 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 {POSTS_IN_THREAD} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: POSTS_IN_THREAD,
|
|
columns: [
|
|
{name: 'root_id', type: 'string', isIndexed: true},
|
|
{name: 'earliest', type: 'number'},
|
|
{name: 'latest', type: 'number'},
|
|
],
|
|
});
|