bug in user entity
This commit is contained in:
@@ -27,11 +27,11 @@ export class User extends BaseEntity {
|
||||
this._phone = normalizePhone(value);
|
||||
}
|
||||
|
||||
@Property({ default: null, type: 'date' })
|
||||
birthDate!: Date;
|
||||
@Property({ default: null, type: 'date', nullable: true })
|
||||
birthDate?: Date;
|
||||
|
||||
@Property({ default: null, type: 'date' })
|
||||
marriageDate!: Date;
|
||||
@Property({ default: null, type: 'date', nullable: true })
|
||||
marriageDate?: Date;
|
||||
|
||||
@Property({ nullable: true })
|
||||
referrer?: string;
|
||||
@@ -39,7 +39,7 @@ export class User extends BaseEntity {
|
||||
@Property({ default: true })
|
||||
isActive?: boolean = true;
|
||||
|
||||
@Property({ default: true })
|
||||
@Property({ default: true, nullable: true })
|
||||
gender?: boolean;
|
||||
|
||||
@Property({ nullable: true })
|
||||
|
||||
@@ -280,8 +280,7 @@ export class CategoriesSeeder {
|
||||
// Hat (chef hat)
|
||||
'کلاه': ['hat robe', 'hat robe 2'],
|
||||
|
||||
// Bread
|
||||
'نان': ['bread', 'loaf of bread', 'loaf of bread 2'],
|
||||
|
||||
|
||||
// Candle (birthday)
|
||||
'شمع': ['candle'],
|
||||
|
||||
Reference in New Issue
Block a user