I'm currently struggling to add a getter to the name field of the Company model object in my project. Despite trying various approaches, I haven't had any success so far. Unfortunately, I also couldn't find a suitable example to guide me through this issue. The Sequelize version I am using is 5.21. My main confusion lies in whether the getter should be inside a decorator or another part of the code. To keep things clear and concise, here's a trimmed snippet of the relevant code. Any assistance on this matter would be highly appreciated.
export default class Company extends Model<Company> {
@PrimaryKey
@Default(DataType.UUIDV4)
@Column(DataType.UUID)
id: string;
@Default(DataType.NOW)
@Column
created_at: Date;
@Default(0)
@Column
deleted_at: Date;
@AllowNull(false)
@Column(DataType.STRING(25))
name: string;
@Default(true)
@Column
active: boolean;
}