mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 18:13:26 +00:00
Add last logged in to User and delete users who are older than 1 year with no sessions
This commit is contained in:
@@ -22,6 +22,9 @@ export class User {
|
||||
@Property({ type: 'date' })
|
||||
createdAt: Date = new Date();
|
||||
|
||||
@Property({ type: 'date', nullable: true })
|
||||
lastLoggedIn?: Date;
|
||||
|
||||
@Property({ name: 'permissions', type: types.array })
|
||||
roles: string[] = [];
|
||||
|
||||
|
Reference in New Issue
Block a user