user name is now nullable
This commit is contained in:
parent
cd489ed06f
commit
7073483d40
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue