mattermost-mobile/app/database/schema/server/table_schemas/post_metadata.ts
Elias Nahum 8cd127a223
[Gekidou] Typings & PostMetadata structure (#5542)
* Typings & PostMetadata structure

* comment out unused code

* Remove duplicate interface

* Fix getPreferenceAsBool defaultValue
2021-07-15 11:49:02 -04:00

16 lines
434 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 {POST_METADATA} = MM_TABLES.SERVER;
export default tableSchema({
name: POST_METADATA,
columns: [
{name: 'data', type: 'string'},
{name: 'post_id', type: 'string', isIndexed: true},
],
});