forked from Ivasoft/mattermost-mobile
* MM_30475 : ADDED default schema * MM_30475 : Updated typings and references to MM_TABLES * MM_30475 : Removed the app_id (The id field will be overwritten at the time of creation.) * MM_30475 : Updated PR as per comments
15 lines
491 B
TypeScript
15 lines
491 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {Model} from '@nozbe/watermelondb';
|
|
import {MM_TABLES} from '@constants/database';
|
|
import field from '@nozbe/watermelondb/decorators/field';
|
|
|
|
export default class App extends Model {
|
|
static table = MM_TABLES.DEFAULT.APP
|
|
|
|
@field('build_number') buildNumber!: string
|
|
@field('created_at') createdAt!: number
|
|
@field('version_number') versionNumber!: string
|
|
}
|