Files
mattermost-mobile/app/database/models/default/app.ts
Avinash Lingaloo 78b76352c8 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 <>
2021-04-22 19:16:00 +04:00

28 lines
855 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Model} from '@nozbe/watermelondb';
import {field} from '@nozbe/watermelondb/decorators';
import {MM_TABLES} from '@constants/database';
const {APP} = MM_TABLES.DEFAULT;
/**
* The App model will hold information - such as the version number, build number and creation date -
* for the Mattermost mobile app.
*/
export default class App extends Model {
/** table (entity name) : app */
static table = APP;
/** build_number : Build number for the app */
@field('build_number') buildNumber!: string;
/** created_at : Date of creation for this version */
@field('created_at') createdAt!: number;
/** version_number : Version number for the app */
@field('version_number') versionNumber!: string;
}