forked from Ivasoft/mattermost-mobile
* Init * Test fix * New sync implementation * misc * Includes migration and other servers sync * Misc * Migration fix * Migration is done version 7 * Update app/queries/servers/thread.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Update app/database/operator/server_data_operator/handlers/team_threads_sync.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Feedback changes * Fixes when old thread gets a reply * Fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
21 lines
598 B
TypeScript
21 lines
598 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';
|
|
|
|
import type {TableSchemaSpec} from '@nozbe/watermelondb/Schema';
|
|
|
|
const {THREAD_PARTICIPANT} = MM_TABLES.SERVER;
|
|
|
|
export const tableSchemaSpec: TableSchemaSpec = {
|
|
name: THREAD_PARTICIPANT,
|
|
columns: [
|
|
{name: 'thread_id', type: 'string', isIndexed: true},
|
|
{name: 'user_id', type: 'string', isIndexed: true},
|
|
],
|
|
};
|
|
|
|
export default tableSchema(tableSchemaSpec);
|