Closed
Description
- Make
description
field technically unlimited, instead of default255
chars - Make
title
field max length 128 insated of 64, as it was too short - Explicitly define the length of all
VARCHAR
fields for 2 reasons:npm run init-db force
would create DB schema, and if we don't define explicit length forVARCHAR
in model definitions, then default255
length would be used which is not always what we want- even if we keep the default length, still explicitly define
255
to keep us aware of the maximum length, we have to make sure, that Joi has validation rules which do not pass data that is not accepted by DB, to keep things clear