forked from Ivasoft/mattermost-mobile
* Rename groups in channel/team to group channel/team * Redefine groups schema * Groups action and operator * Add group at mentions * fix uni test * Update types/database/models/servers/group.d.ts Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com> Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
19 lines
558 B
TypeScript
19 lines
558 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {tableSchema} from '@nozbe/watermelondb';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {GROUPS_CHANNEL} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: GROUPS_CHANNEL,
|
|
columns: [
|
|
{name: 'channel_id', type: 'string', isIndexed: true},
|
|
{name: 'group_id', type: 'string', isIndexed: true},
|
|
{name: 'member_count', type: 'number'},
|
|
{name: 'timezone_count', type: 'number'},
|
|
],
|
|
});
|