Akash
02/17/2021, 5:17 AMRyan
02/17/2021, 5:20 AMprisma generate
and restart your editor?Akash
02/17/2021, 5:22 AMAkash
02/17/2021, 7:42 AMJoël
Akash
02/17/2021, 8:12 AMJoël
Akash
02/17/2021, 8:14 AMpayroll_employees.clustering_company_id_index
for which the types are getting incorrectly generated. But there are lot of other issues as well. Will keep you updated with anything I find.Joël
Akash
02/17/2021, 8:15 AMAkash
02/17/2021, 8:31 AMexport type payroll_kw_wallet_transactionsTypeSourceInvoice_idStatusCompoundUniqueInput = {
type: payroll_kw_wallet_transactions_types
source: payroll_kw_wallet_transaction_source
invoice_id: string
status: payroll_transaction_status
}
2.17
export type payroll_kw_wallet_transactionsPayroll_kw_wallet_transactions.type_source_invoice_id_status_unCompoundUniqueInput = {
type: payroll_kw_wallet_transactions_types
source: payroll_kw_wallet_transaction_source
invoice_id: string
status: payroll_transaction_status
}
Look at the difference in the names. Typescript isn't allowing .
in the type name and hence the issue.tim2
02/17/2021, 8:32 AMAkash
02/17/2021, 8:39 AM@@unique([type, source, invoice_id, status])
to @@unique([type, source, invoice_id, status], name: "payroll_kw_wallet_transactions.type_source_invoice_id_status_un")
which on being generated by Prisma is leading to this incorrect type naming issue in both the versions. This was the reason reverting only the version earlier didn't help.
Please let me know when a fix is available. For now I will remove the naming from my schema.Joël
Akash
02/17/2021, 8:43 AM.
in the nametim2
02/17/2021, 10:46 AMtim2
02/17/2021, 10:47 AMAkash
02/17/2021, 1:07 PM.
in the name are being generated by prisma itself which is leading to this issue.tim2
02/17/2021, 5:39 PM