mirasnag / budget-sync

Apache License 2.0
0 stars 1 forks source link

Difference between date and createdAt #3

Open Qasym opened 1 week ago

Qasym commented 1 week ago

Hi, @mirasnag,

I was looking through the Transaction data type (apart from another issue I opened), I was curious about the fields inside the Transaction data type. Especially, date and createdAt, it is not really clear to me what the difference is between them?

The description for date says:

The date of the transaction

The description for createdAt says:

The date and time when the transaction was created

I am looking forward to hearing from you! Thanks for your cooperation!

mirasnag commented 2 days ago

Hello, The date field represents the actual date of the transaction—the day it occurred. On the other hand, createdAt is the timestamp of when the user entered the transaction data, which may differ if the transaction is logged later. This setup allows us to differentiate between when a transaction took place and when it was recorded.

Let me know if you have any further questions! Thanks again for your attention to detail.