mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
✨ add Team
This commit is contained in:
parent
00b39155aa
commit
a3fbe6ba7d
17
src/models/Team.ts
Normal file
17
src/models/Team.ts
Normal 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,
|
||||
}
|
Loading…
Reference in New Issue
Block a user