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; }