blob: 5d0747b8bddafd828b3fb949ad680590c8f2a6bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { BaseEntity, Column, Entity, PrimaryColumn } from "typeorm";
import { Config } from "..";
@Entity("valid_registration_tokens")
export class ValidRegistrationToken extends BaseEntity {
@PrimaryColumn()
token: string;
@Column()
created_at: Date = new Date();
@Column()
expires_at: Date = new Date(Date.now() + Config.get().security.defaultRegistrationTokenExpiration);
}
|