diff --git a/src/users/session.entity.ts b/src/users/session.entity.ts index f4dc6a51f..4396a6ef1 100644 --- a/src/users/session.entity.ts +++ b/src/users/session.entity.ts @@ -4,7 +4,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import { ISession } from 'connect-typeorm'; -import { Column, Entity, Index, ManyToOne, PrimaryColumn } from 'typeorm'; +import { + Column, + DeleteDateColumn, + Entity, + Index, + ManyToOne, + PrimaryColumn, +} from 'typeorm'; import { Author } from '../authors/author.entity'; @@ -20,6 +27,9 @@ export class Session implements ISession { @Column('text') public json = ''; + @DeleteDateColumn() + public destroyedAt?: Date; + @ManyToOne(() => Author, (author) => author.sessions) author: Promise; }