Files
mattermost-mobile/app/database/default/models/server.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

17 lines
569 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/field';
import {MM_TABLES} from '@constants/database';
export default class Server extends Model {
static table = MM_TABLES.DEFAULT.SERVERS
@field('db_path') dbPath!: string
@field('display_name') displayName!: string
@field('mention_count') mentionCount!: number
@field('unread_count') unreadCount!: number
@field('url') url!: string
}