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