feat: add attributes to each product in service
This commit is contained in:
parent
02e17fcde4
commit
f5df3332b5
2 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
}[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue