mattermost-mobile/app/database/schema/server/table_schemas/custom_profile_field.ts
2025-04-09 15:35:27 +02:00

23 lines
758 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 {CUSTOM_PROFILE_FIELD} = MM_TABLES.SERVER;
export default tableSchema({
name: CUSTOM_PROFILE_FIELD,
columns: [
{name: 'group_id', type: 'string'},
{name: 'name', type: 'string'},
{name: 'type', type: 'string'},
{name: 'target_id', type: 'string'},
{name: 'target_type', type: 'string'},
{name: 'create_at', type: 'number'},
{name: 'update_at', type: 'number'},
{name: 'delete_at', type: 'number'},
{name: 'attrs', type: 'string', isOptional: true},
],
});