extend inspection_plan by wearable and enable optional interval

This commit is contained in:
Julian Krauser 2025-07-25 12:21:40 +02:00
parent 9b38c6a5e9
commit 063b949ae1
7 changed files with 31 additions and 17 deletions

View file

@ -6,8 +6,8 @@ export const inspection_plan_table = new Table({
columns: [
{ name: "id", ...getTypeByORM("uuid"), ...isUUIDPrimary },
{ name: "title", ...getTypeByORM("varchar") },
{ name: "inspectionInterval", ...getTypeByORM("varchar") },
{ name: "remindTime", ...getTypeByORM("varchar") },
{ name: "inspectionInterval", ...getTypeByORM("varchar", true) },
{ name: "remindTime", ...getTypeByORM("varchar", true) },
{ name: "createdAt", ...getTypeByORM("datetime"), default: getDefaultByORM("currentTimestamp") },
{ name: "equipmentTypeId", ...getTypeByORM("uuid", true) },
{ name: "vehicleTypeId", ...getTypeByORM("uuid", true) },