Registration tokens
This commit is contained in:
@@ -0,0 +1,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;
|
||||
}
|
||||
@@ -32,3 +32,4 @@ export * from "./ClientRelease";
|
||||
export * from "./BackupCodes";
|
||||
export * from "./Note";
|
||||
export * from "./UserSettings";
|
||||
export * from "./ValidRegistrationTokens";
|
||||
Reference in New Issue
Block a user