Implement user online status

Resolve #7422
Fix #7424
This commit is contained in:
syuilo
2021-04-17 15:30:26 +09:00
parent 61461b7f59
commit 68571d8f57
10 changed files with 92 additions and 9 deletions

View File

@@ -26,6 +26,17 @@ export class User {
})
public lastFetchedAt: Date | null;
@Index()
@Column('timestamp with time zone', {
nullable: true
})
public lastActiveDate: Date | null;
@Column('boolean', {
default: false,
})
public hideOnlineStatus: boolean;
@Column('varchar', {
length: 128,
comment: 'The username of the User.'