type: {
type: DataTypes.STRING,
defaultValue: "Normal"
}
In this type I want to add validation Only the Type can be “Normal” Or “Installment”
I don’t want to use enum so how can I costume validation in sequlize model?
type: {
type: DataTypes.STRING,
defaultValue: "Normal"
}
In this type I want to add validation Only the Type can be “Normal” Or “Installment”
I don’t want to use enum so how can I costume validation in sequlize model?