diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 021eff4..c53750a 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1070,6 +1070,7 @@ model WorkProduct { product Product @relation(fields: [productId], references: [id], onDelete: Cascade) productId String installmentNo Int @default(0) + attributes Json? createdAt DateTime @default(now()) createdBy User? @relation(name: "WorkProductCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull) diff --git a/src/controllers/04-service-controller.ts b/src/controllers/04-service-controller.ts index 7a9d542..5ef3023 100644 --- a/src/controllers/04-service-controller.ts +++ b/src/controllers/04-service-controller.ts @@ -69,6 +69,7 @@ type ServiceCreate = { * @isInt */ installmentNo?: number; + attributes?: { [key: string]: any }; }[]; attributes?: { [key: string]: any }; }[]; @@ -83,7 +84,7 @@ type ServiceUpdate = { attributes?: { [key: string]: any; }; - /* + /** * @isInt */ installments?: number; @@ -93,10 +94,11 @@ type ServiceUpdate = { name: string; product: { id: string; - /* + /** * @isInt */ installmentNo?: number; + attributes?: { [key: string]: any }; }[]; attributes?: { [key: string]: any }; }[];