Skip to content

Extending transaction model #201

@smtlab

Description

@smtlab

Hey @rez1dent3

Can you suggest to me how should I go about the below use case?

I am working on the logistics app, where I have shipments from multiple customers.

Every customer has cod-wallet
I have to deposit Cash on delivery amount from shipments to cod-wallet.

The problem here is there is a background service which picks up unpaid shipments from DB and processes deposit, also I cannot maintain any flag in shipment model for paid status as it would not be reliable, I directly want to join with transactions table and check if the entry exists with type deposit for a shipment.

Unfortunately, the transaction only takes metadata from the user side, using the JSON column I cannot take advantage of joins.

My thoughts on giving developers the flexibility to customize model

Any suggestions would really help.

Thanks in advance

Metadata

Metadata

Assignees

Labels

good issueGood for newcomersquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions