summary refs log tree commit diff
path: root/src/util/entities/ValidRegistrationTokens.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/entities/ValidRegistrationTokens.ts')
-rw-r--r--src/util/entities/ValidRegistrationTokens.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/entities/ValidRegistrationTokens.ts b/src/util/entities/ValidRegistrationTokens.ts
new file mode 100644
index 00000000..00839324
--- /dev/null
+++ b/src/util/entities/ValidRegistrationTokens.ts
@@ -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;
+}
\ No newline at end of file