I have a loopback4 model where am defining the property with type, required and it is connected with mysql database.Now for the description column i have defined as string and in the table it shows varchar(512). For the description i have more than 512 length. How to change this. If i change the length manually in the table. if i run it is getting changed to default. How to do this.
Model Code:
@property({
type: 'string',
required: true,
})
description: string;
I have changed the type to "text" but it is throwing error.Help me to solve this issue.