forked from Ivasoft/mattermost-mobile
[Gekidou] Update database to hold if a user is a team or channel admin (#6351)
* Update database to hold if a user is a team or channel admin * TeamMembership identifier * Fix handleTeamMembership test * Update server.md Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
This commit is contained in:
@@ -24,6 +24,9 @@ export default class ChannelMembershipModel extends Model {
|
||||
/* user_id: The foreign key to the related User record*/
|
||||
userId: string;
|
||||
|
||||
/* scheme_admin: Determines if the user is an admin of the channel*/
|
||||
schemeAdmin: boolean;
|
||||
|
||||
/** memberChannel : The related channel this member belongs to */
|
||||
memberChannel: Relation<ChannelModel>;
|
||||
|
||||
|
||||
@@ -24,6 +24,9 @@ export default class TeamMembershipModel extends Model {
|
||||
/* user_id: The foreign key to the related User record*/
|
||||
userId: string;
|
||||
|
||||
/* scheme_admin: Determines if the user is an admin of the channel*/
|
||||
schemeAdmin: boolean;
|
||||
|
||||
/** memberUser: The related user in the team */
|
||||
memberUser: Relation<UserModel>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user