diff --git a/server/entities/user.ts b/server/entities/user.ts index 2f849fc7b..3b9542b1d 100644 --- a/server/entities/user.ts +++ b/server/entities/user.ts @@ -1,4 +1,4 @@ -import { Column, Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn, OneToMany, ManyToMany, JoinTable, OneToOne } from 'typeorm'; +import { Column, Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn, OneToMany, ManyToMany, JoinTable, OneToOne, CreateDateColumn } from 'typeorm'; import type { Country } from '../../types/country.type'; import { UserType } from '../../types/user.type'; @@ -20,6 +20,9 @@ export class User implements UserInterface { @PrimaryGeneratedColumn() public id: number; + @CreateDateColumn() + createdAt: Date; + @Column({ type: 'varchar', length: 255, unique: true }) public email: string;