[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:
Elias Nahum
2022-06-06 05:54:02 -04:00
committed by GitHub
parent f97d943f9a
commit 81357d8a0e
14 changed files with 36 additions and 3 deletions

View File

@@ -12,5 +12,6 @@ export default tableSchema({
columns: [
{name: 'channel_id', type: 'string', isIndexed: true},
{name: 'user_id', type: 'string', isIndexed: true},
{name: 'scheme_admin', type: 'boolean'},
],
});

View File

@@ -12,5 +12,6 @@ export default tableSchema({
columns: [
{name: 'team_id', type: 'string', isIndexed: true},
{name: 'user_id', type: 'string', isIndexed: true},
{name: 'scheme_admin', type: 'boolean'},
],
});

View File

@@ -137,10 +137,12 @@ describe('*** Test schema for SERVER database ***', () => {
columns: {
channel_id: {name: 'channel_id', type: 'string', isIndexed: true},
user_id: {name: 'user_id', type: 'string', isIndexed: true},
scheme_admin: {name: 'scheme_admin', type: 'boolean'},
},
columnArray: [
{name: 'channel_id', type: 'string', isIndexed: true},
{name: 'user_id', type: 'string', isIndexed: true},
{name: 'scheme_admin', type: 'boolean'},
],
},
[CUSTOM_EMOJI]: {
@@ -486,10 +488,12 @@ describe('*** Test schema for SERVER database ***', () => {
columns: {
team_id: {name: 'team_id', type: 'string', isIndexed: true},
user_id: {name: 'user_id', type: 'string', isIndexed: true},
scheme_admin: {name: 'scheme_admin', type: 'boolean'},
},
columnArray: [
{name: 'team_id', type: 'string', isIndexed: true},
{name: 'user_id', type: 'string', isIndexed: true},
{name: 'scheme_admin', type: 'boolean'},
],
},
[TEAM_SEARCH_HISTORY]: {