// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import {AppSchema, appSchema} from '@nozbe/watermelondb';

import {
    CategorySchema,
    CategoryChannelSchema,
    ChannelInfoSchema,
    ChannelMembershipSchema,
    ChannelSchema,
    ConfigSchema,
    CustomEmojiSchema,
    DraftSchema,
    FileSchema,
    GroupSchema,
    GroupChannelSchema,
    GroupMembershipSchema,
    GroupTeamSchema,
    MyChannelSchema,
    MyChannelSettingsSchema,
    MyTeamSchema,
    PostInThreadSchema,
    PostSchema,
    PostsInChannelSchema,
    PreferenceSchema,
    ReactionSchema,
    RoleSchema,
    SystemSchema,
    TeamChannelHistorySchema,
    TeamMembershipSchema,
    TeamSchema,
    TeamSearchHistorySchema,
    ThreadSchema,
    ThreadInTeamSchema,
    ThreadParticipantSchema,
    TeamThreadsSyncSchema,
    UserSchema,
} from './table_schemas';

export const serverSchema: AppSchema = appSchema({
    version: 1,
    tables: [
        CategorySchema,
        CategoryChannelSchema,
        ChannelInfoSchema,
        ChannelMembershipSchema,
        ChannelSchema,
        ConfigSchema,
        CustomEmojiSchema,
        DraftSchema,
        FileSchema,
        GroupSchema,
        GroupChannelSchema,
        GroupMembershipSchema,
        GroupTeamSchema,
        MyChannelSchema,
        MyChannelSettingsSchema,
        MyTeamSchema,
        PostInThreadSchema,
        PostSchema,
        PostsInChannelSchema,
        PreferenceSchema,
        ReactionSchema,
        RoleSchema,
        SystemSchema,
        TeamChannelHistorySchema,
        TeamMembershipSchema,
        TeamSchema,
        TeamSearchHistorySchema,
        TeamThreadsSyncSchema,
        ThreadSchema,
        ThreadInTeamSchema,
        ThreadParticipantSchema,
        UserSchema,
    ],
});
