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:
@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user