user name is now nullable

This commit is contained in:
Erin 2023-11-12 13:22:20 -05:00
parent cd489ed06f
commit 7073483d40

View file

@ -18,8 +18,8 @@ export class User {
@CreateDateColumn()
createdAt!: Date;
@Column({type: 'varchar', length: 500, nullable: false})
name!: string;
@Column({type: 'varchar', length: 500, nullable: true})
name: string | null = null;
@OneToMany(() => AuthMethod, authMethod => authMethod.user)
authMethods!: AuthMethod[];