correction for generic users
This commit is contained in:
@@ -42,10 +42,10 @@ export class Users {
|
||||
password_hash: string;
|
||||
|
||||
@Column({ name: 'prenom', nullable: true })
|
||||
first_name: string;
|
||||
first_name?: string;
|
||||
|
||||
@Column({ name: 'nom', nullable: true })
|
||||
last_name: string;
|
||||
last_name?: string;
|
||||
|
||||
@Column({
|
||||
type: 'enum',
|
||||
@@ -91,6 +91,12 @@ export class Users {
|
||||
@Column({ default: false, name: 'changement_mdp_obligatoire' })
|
||||
must_change_password: boolean;
|
||||
|
||||
@Column({ nullable: true, name: 'ville' })
|
||||
city?: string;
|
||||
|
||||
@Column({ nullable: true, name: 'code_postal' })
|
||||
postal_code?: string;
|
||||
|
||||
@CreateDateColumn({ name: 'cree_le', type: 'timestamptz' })
|
||||
created_at: Date;
|
||||
|
||||
@@ -106,4 +112,7 @@ export class Users {
|
||||
|
||||
@OneToMany(() => Message, m => m.sender)
|
||||
messages?: Message[];
|
||||
|
||||
@OneToMany(() => Parents, parent => parent.co_parent)
|
||||
co_parent_in?: Parents[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user