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)
|
product Product @relation(fields: [productId], references: [id], onDelete: Cascade)
|
||||||
productId String
|
productId String
|
||||||
installmentNo Int @default(0)
|
installmentNo Int @default(0)
|
||||||
|
attributes Json?
|
||||||
|
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
createdBy User? @relation(name: "WorkProductCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
|
createdBy User? @relation(name: "WorkProductCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ type ServiceCreate = {
|
||||||
* @isInt
|
* @isInt
|
||||||
*/
|
*/
|
||||||
installmentNo?: number;
|
installmentNo?: number;
|
||||||
|
attributes?: { [key: string]: any };
|
||||||
}[];
|
}[];
|
||||||
attributes?: { [key: string]: any };
|
attributes?: { [key: string]: any };
|
||||||
}[];
|
}[];
|
||||||
|
|
@ -83,7 +84,7 @@ type ServiceUpdate = {
|
||||||
attributes?: {
|
attributes?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
/*
|
/**
|
||||||
* @isInt
|
* @isInt
|
||||||
*/
|
*/
|
||||||
installments?: number;
|
installments?: number;
|
||||||
|
|
@ -93,10 +94,11 @@ type ServiceUpdate = {
|
||||||
name: string;
|
name: string;
|
||||||
product: {
|
product: {
|
||||||
id: string;
|
id: string;
|
||||||
/*
|
/**
|
||||||
* @isInt
|
* @isInt
|
||||||
*/
|
*/
|
||||||
installmentNo?: number;
|
installmentNo?: number;
|
||||||
|
attributes?: { [key: string]: any };
|
||||||
}[];
|
}[];
|
||||||
attributes?: { [key: string]: any };
|
attributes?: { [key: string]: any };
|
||||||
}[];
|
}[];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue