forked from Ivasoft/mattermost-mobile
* First pass at adding groups to mobile * Reverts back and updates the group vars * Cleans tests * Missing created/updated/deleted fields in types, many-many ref fix * Adds to manager * PR Feedback * Failing test * Move FK out of comment, add indexes * updated docs/database/server artefacts Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
20 lines
587 B
TypeScript
20 lines
587 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 {GROUP_TEAM} = MM_TABLES.SERVER;
|
|
|
|
export default tableSchema({
|
|
name: GROUP_TEAM,
|
|
columns: [
|
|
{name: 'group_id', type: 'string', isIndexed: true},
|
|
{name: 'team_id', type: 'string', isIndexed: true},
|
|
{name: 'created_at', type: 'number'},
|
|
{name: 'updated_at', type: 'number'},
|
|
{name: 'deleted_at', type: 'number'},
|
|
],
|
|
});
|