* 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 <>
23 lines
726 B
TypeScript
23 lines
726 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 {FILE} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: FILE,
|
|
columns: [
|
|
{name: 'extension', type: 'string'},
|
|
{name: 'height', type: 'number'},
|
|
{name: 'image_thumbnail', type: 'string'},
|
|
{name: 'local_path', type: 'string'},
|
|
{name: 'mime_type', type: 'string'},
|
|
{name: 'name', type: 'string'},
|
|
{name: 'post_id', type: 'string', isIndexed: true},
|
|
{name: 'size', type: 'number'},
|
|
{name: 'width', type: 'number'},
|
|
],
|
|
});
|