forked from Ivasoft/mattermost-mobile
* Refactored storage layer - in progress * Refactored DatabaseManager & Operators * Renamed isRecordAppEqualToRaw to isRecordInfoEqualToRaw * Review feedback * Update app/database/models/app/info.ts Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> * Update app/database/models/server/my_team.ts Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> Co-authored-by: Avinash Lingaloo <> Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
19 lines
589 B
TypeScript
19 lines
589 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 {CUSTOM_EMOJI} = MM_TABLES.SERVER;
|
|
|
|
/** The CustomEmoji model describes all the custom emojis used in the Mattermost app */
|
|
export default class CustomEmoji extends Model {
|
|
/** table (name) : CustomEmoji */
|
|
static table = CUSTOM_EMOJI;
|
|
|
|
/** name : The custom emoji's name*/
|
|
@field('name') name!: string;
|
|
}
|