Skip to content

Database Model: Transaction

Chris Suleiman edited this page Apr 1, 2020 · 3 revisions

Model: Transaction

model for group payment process. Initiated by a user. Other users join.

Properties

  • ID
  • status - paid or unpaid
  • date
  • location - default as NULL
  • total
  • participants - an array of id's representing users that are participating in a transaction

Associations

belongsTo 'User' as "createdBy" w/ foreignKey = userID

Clone this wiki locally