command Handlers and schema update

This commit is contained in:
Julian Krauser 2025-05-29 10:31:40 +02:00
parent 0f6401953f
commit 7883bb7d7f
42 changed files with 1076 additions and 159 deletions

View file

@ -126,10 +126,9 @@ export const inspection_table = new Table({
export const inspection_point_result_table = new Table({
name: "inspection_point_result",
columns: [
{ name: "id", ...getTypeByORM("uuid"), ...isUUIDPrimary },
{ name: "inspectionId", ...getTypeByORM("uuid"), isPrimary: true },
{ name: "inspectionPointId", ...getTypeByORM("uuid"), isPrimary: true },
{ name: "value", ...getTypeByORM("text") },
{ name: "inspectionId", ...getTypeByORM("uuid") },
{ name: "inspectionPointId", ...getTypeByORM("uuid") },
],
foreignKeys: [
new TableForeignKey({