feat(db): allow multiple anamnesis history entries

convert history_of_present_illness, history_of_allergies, and
history_of_illness columns to text arrays to store multiple values

BREAKING CHANGE: history_of_* fields are now text arrays instead of text
This commit is contained in:
avicenan
2026-03-09 12:08:02 +07:00
parent 24a31d727b
commit c34dbe7389

View File

@ -34,14 +34,14 @@ export class Emranamnesis {
@Column({ nullable: true, type: "text" }) @Column({ nullable: true, type: "text" })
additional_complaint: string; additional_complaint: string;
@Column({ nullable: true, type: "text" }) @Column({ nullable: true, type: "text", array: true })
history_of_present_illness: string; history_of_present_illness: string[];
@Column({ nullable: true, type: "text" }) @Column({ nullable: true, type: "text", array: true })
history_of_allergies: string; history_of_allergies: string[];
@Column({ nullable: true, type: "text" }) @Column({ nullable: true, type: "text", array: true })
history_of_illness: string; history_of_illness: string[];
@Column({ @Column({
type: "enum", type: "enum",