[Gekidou] [Migration] Adds member_count to groups table (#6468)

* Adds member_count to groups table

* Newline
This commit is contained in:
Shaz MJ
2022-07-15 17:01:54 +10:00
committed by GitHub
parent b25f5b10b2
commit de2c240bc7
9 changed files with 26 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ type Group = {
description: string;
source: string;
remote_id: string;
member_count: number;
member_count?: number;
allow_reference: boolean;
create_at: number;
update_at: number;

View File

@@ -43,6 +43,9 @@ export default class GroupModel extends Model {
/** deleted_at : The timestamp for when it was deleted */
deletedAt: number;
/** member_count : The number of members in the group */
memberCount: number;
/** channels : All the channels associated with this group */
@lazy channels: Query<ChannelModel>;