mattermost-mobile/app/database/schema/server/index.ts
Guillermo Vayá 87395e1210
[MM-65984] DB changes to handle Playbook Run Attributes (#9172)
* db changes

* temp tests

* missing mock models

* test helpers improvement

* address naming errors

* added comments to schema

* x2

* minor corrections

* Update app/products/playbooks/database/models/playbook_run_attribute_value.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* docs

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-12 21:48:50 +02:00

92 lines
2.4 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {type AppSchema, appSchema} from '@nozbe/watermelondb';
import {PlaybookRunSchema, PlaybookChecklistSchema, PlaybookChecklistItemSchema, PlaybookRunAttributeSchema, PlaybookRunAttributeValueSchema} from '@playbooks/database/schema';
import {
CategorySchema,
CategoryChannelSchema,
ChannelSchema,
ChannelBookmarkSchema,
ChannelInfoSchema,
ChannelMembershipSchema,
ConfigSchema,
CustomEmojiSchema,
CustomProfileFieldSchema,
CustomProfileAttributeSchema,
DraftSchema,
FileSchema,
GroupSchema,
GroupChannelSchema,
GroupMembershipSchema,
GroupTeamSchema,
MyChannelSchema,
MyChannelSettingsSchema,
MyTeamSchema,
PostInThreadSchema,
PostSchema,
PostsInChannelSchema,
PreferenceSchema,
ReactionSchema,
RoleSchema,
ScheduledPostSchema,
SystemSchema,
TeamChannelHistorySchema,
TeamMembershipSchema,
TeamSchema,
TeamSearchHistorySchema,
ThreadSchema,
ThreadInTeamSchema,
ThreadParticipantSchema,
TeamThreadsSyncSchema,
UserSchema,
} from './table_schemas';
export const serverSchema: AppSchema = appSchema({
version: 14,
tables: [
CategorySchema,
CategoryChannelSchema,
ChannelSchema,
ChannelBookmarkSchema,
ChannelInfoSchema,
ChannelMembershipSchema,
ConfigSchema,
CustomEmojiSchema,
CustomProfileFieldSchema,
CustomProfileAttributeSchema,
DraftSchema,
FileSchema,
GroupSchema,
GroupChannelSchema,
GroupMembershipSchema,
GroupTeamSchema,
MyChannelSchema,
MyChannelSettingsSchema,
MyTeamSchema,
PlaybookRunSchema,
PlaybookChecklistSchema,
PlaybookChecklistItemSchema,
PlaybookRunAttributeSchema,
PlaybookRunAttributeValueSchema,
PostInThreadSchema,
PostSchema,
PostsInChannelSchema,
PreferenceSchema,
ReactionSchema,
RoleSchema,
ScheduledPostSchema,
SystemSchema,
TeamChannelHistorySchema,
TeamMembershipSchema,
TeamSchema,
TeamSearchHistorySchema,
TeamThreadsSyncSchema,
ThreadSchema,
ThreadInTeamSchema,
ThreadParticipantSchema,
UserSchema,
],
});