1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

add Team

This commit is contained in:
Flam3rboy 2021-05-26 22:38:21 +02:00
parent 00b39155aa
commit a3fbe6ba7d

17
src/models/Team.ts Normal file
View File

@ -0,0 +1,17 @@
export interface Team {
icon: string | null;
id: string;
members: {
membership_state: number;
permissions: string[];
team_id: string;
user_id: string;
}[];
name: string;
owner_user_id: string;
}
export enum TeamMemberState {
INVITED = 1,
ACCEPTED = 2,
}