Files
mattermost-mobile/app/database/default/models/app.ts
Avinash Lingaloo 2dfb3433c9 MM-30475 [v2] watermelondb default schema (#4977)
* 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
2020-11-24 13:58:20 +04:00

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
}