mattermost-mobile/app/database/schema/server/table_schemas/channel.ts
Mattermost Build 3edc6c51ab
Database changes for autotranslations (#9495) (#9499)
(cherry picked from commit 61f10310dc)

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2026-02-10 18:34:56 +02:00

27 lines
1 KiB
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 {CHANNEL} = MM_TABLES.SERVER;
export default tableSchema({
name: CHANNEL,
columns: [
{name: 'create_at', type: 'number'},
{name: 'creator_id', type: 'string', isIndexed: true},
{name: 'delete_at', type: 'number'},
{name: 'display_name', type: 'string'},
{name: 'is_group_constrained', type: 'boolean'},
{name: 'name', type: 'string', isIndexed: true},
{name: 'shared', type: 'boolean'},
{name: 'team_id', type: 'string', isIndexed: true},
{name: 'type', type: 'string'},
{name: 'update_at', type: 'number'},
{name: 'banner_info', type: 'string', isOptional: true},
{name: 'abac_policy_enforced', type: 'boolean', isOptional: true},
{name: 'autotranslation', type: 'boolean', isOptional: true},
],
});