summary refs log tree commit diff
path: root/src/util/entities/ValidRegistrationTokens.ts
blob: 00839324122d7e88344c8f5c8a8e28c4ecf77a59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { BaseEntity, Column, Entity, PrimaryColumn } from "typeorm";

@Entity("valid_registration_tokens")
export class ValidRegistrationToken extends BaseEntity {
	@PrimaryColumn()
	token: string;
	
	@Column()
	created_at: Date = new Date();

	@Column()
	expires_at: Date;
}