forked from Ivasoft/mattermost-mobile
MM-30482 [Gekidou] Data Operator (#5346)
* MM_30482: Imported database and types /database folder * MM_30482: Imported database and types /database folder * MM_30482 : All tests are passing * MM_30482 : Updating patch package for watermelon db * MM_30482 : Fixing CI issue * MM_30482 : Updating TS complaint * Update index.ts * MM_30482 : Code clean up Co-authored-by: Avinash Lingaloo <>
This commit is contained in:
17
app/database/schema/server/table_schemas/posts_in_thread.ts
Normal file
17
app/database/schema/server/table_schemas/posts_in_thread.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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: 'earliest', type: 'number'},
|
||||
{name: 'latest', type: 'number'},
|
||||
{name: 'post_id', type: 'string', isIndexed: true},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user