forked from Ynov/ptitspas-ynov-back
corccetion validations entity
This commit is contained in:
parent
c3be8f9569
commit
804c9e92a4
@ -27,6 +27,12 @@ export class Validation {
|
|||||||
default: StatutValidationType.EN_ATTENTE
|
default: StatutValidationType.EN_ATTENTE
|
||||||
})
|
})
|
||||||
status: StatutValidationType;
|
status: StatutValidationType;
|
||||||
|
@ManyToOne(() => Users, { nullable: true })
|
||||||
|
@JoinColumn({ name: 'valide_par', referencedColumnName: 'id' })
|
||||||
|
validated_by?: Users;
|
||||||
|
|
||||||
|
@Column( { name: 'commenteaire', type: 'text', nullable: true })
|
||||||
|
comment?: string;
|
||||||
|
|
||||||
@CreateDateColumn({ name: 'cree_le', type: 'timestamptz' })
|
@CreateDateColumn({ name: 'cree_le', type: 'timestamptz' })
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
@ -34,3 +40,4 @@ export class Validation {
|
|||||||
@UpdateDateColumn({ name: 'modifie_le', type: 'timestamptz' })
|
@UpdateDateColumn({ name: 'modifie_le', type: 'timestamptz' })
|
||||||
updated_at: Date;
|
updated_at: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user