mattermost-mobile/app/database/models/app/info.ts
Avinash Lingaloo 29628a585f
Gekidou - Fix to make all models implement their respective interface (#6099)
* make all models implement their respective interface

* make all models implement their respective interface
2022-03-29 17:41:46 -03:00

28 lines
951 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';
import InfoModelInterface from '@typings/database/models/app/info';
const {INFO} = MM_TABLES.APP;
/**
* The App model will hold information - such as the version number, build number and creation date -
* for the Mattermost mobile app.
*/
export default class InfoModel extends Model implements InfoModelInterface {
/** table (name) : info */
static table = INFO;
/** 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;
}