* MM_30476 : Added all isolated tables from the server schema * MM_30476 : Updated 'test' script in package.json * MM_30476 : Rename table schemas to avoid name collision * MM_30476 : Added 'Channel' section of the server schema * MM_30476 : Apply suggestions from code review Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> * MM_30476 : Converted @relation to @immutableRelation * MM_30476 : Apply suggestions from code review * MM_30476 : Apply suggestions from code review Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> * MM_30476 : Minor updates to the comments * MM_30476 : Minor update to the comments * MM_30476 : Updated table schema exports * MM_30476 : Updated comments * MM_30476 : Apply suggestions from code review Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * MM_30476 : Update as per suggestions * MM_30476 : Updated comments * MM_30476 : Team and MyTeam share 1:1 relationship * MM_30476 : Updated team comments * MM_30476 : Updated myteam and team comments Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {AppSchema, appSchema} from '@nozbe/watermelondb';
|
|
|
|
import {
|
|
ChannelInfoSchema,
|
|
ChannelMembershipSchema,
|
|
ChannelSchema,
|
|
CustomEmojiSchema,
|
|
DraftSchema,
|
|
FileSchema,
|
|
GroupMembershipSchema,
|
|
GroupSchema,
|
|
GroupsInChannelSchema,
|
|
GroupsInTeamSchema,
|
|
MyChannelSchema,
|
|
MyChannelSettingsSchema,
|
|
MyTeamSchema,
|
|
PostInThreadSchema,
|
|
PostMetadataSchema,
|
|
PostSchema,
|
|
PostsInChannelSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SlashCommandSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
TermsOfServiceSchema,
|
|
UserSchema,
|
|
} from './table_schemas';
|
|
|
|
export const serverSchema: AppSchema = appSchema({
|
|
version: 1,
|
|
tables: [
|
|
ChannelInfoSchema,
|
|
ChannelMembershipSchema,
|
|
ChannelSchema,
|
|
CustomEmojiSchema,
|
|
DraftSchema,
|
|
FileSchema,
|
|
GroupMembershipSchema,
|
|
GroupSchema,
|
|
GroupsInChannelSchema,
|
|
GroupsInTeamSchema,
|
|
MyChannelSchema,
|
|
MyChannelSettingsSchema,
|
|
MyTeamSchema,
|
|
PostsInChannelSchema,
|
|
PostInThreadSchema,
|
|
PostMetadataSchema,
|
|
PostSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SlashCommandSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
TermsOfServiceSchema,
|
|
UserSchema,
|
|
],
|
|
});
|