* MM_30476 : Added all isolated tables from the server schema * MM_30476 : Updated 'test' script in package.json * MM_30476 : Added USER section of the server schema * MM_30476 : Added the models index back * MM_30476 : Updated User entity as per previous comments * MM_30476 : Added lazy query to channel membership * MM_30476 : Adjusted PR as per suggestions * MM_30476 : Update nick_name in user model Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * MM_30476 : Adjusted extra padding * MM_30476 : Corrected ChannelMemberShipSchema to ChannelMembershipSchema * MM_30476 : Updated types/database/index.ts to types/database/index.d.ts Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
41 lines
982 B
TypeScript
41 lines
982 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {AppSchema, appSchema} from '@nozbe/watermelondb';
|
|
|
|
import {
|
|
ChannelMembershipSchema,
|
|
CustomEmojiSchema,
|
|
MyTeamSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SlashCommandSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
TermsOfServiceSchema,
|
|
UserSchema,
|
|
} from './table_schemas';
|
|
|
|
export const serverSchema: AppSchema = appSchema({
|
|
version: 1,
|
|
tables: [
|
|
ChannelMembershipSchema,
|
|
CustomEmojiSchema,
|
|
MyTeamSchema,
|
|
PreferenceSchema,
|
|
ReactionSchema,
|
|
RoleSchema,
|
|
SlashCommandSchema,
|
|
SystemSchema,
|
|
TeamChannelHistorySchema,
|
|
TeamMembershipSchema,
|
|
TeamSchema,
|
|
TeamSearchHistorySchema,
|
|
TermsOfServiceSchema,
|
|
UserSchema,
|
|
],
|
|
});
|