Skip to content

Financial Management

Thareendra Tennakoon edited this page Apr 19, 2023 · 4 revisions

Payment Schema

  • payment_id : objectId | required ( auto-generated )
  • booking_id : objectId | required
  • start_time : datetime | required
  • end_time : datetime | requried
  • duration : number | required ( calculate from front-end)
  • status : string | required (approved/rejected/pending)
  • venue : objectId | required ( reference to venue)
  • price: number | required
  • organizer : objectId | required ( reference to organizer)
  • timestamps

Billing Schema

  • bill_id : objectId | required ( auto-generated )
  • tansaction_id :objectId (payment_id from Payment schema) | required
  • start_time : datetime | required
  • end_time : datetime | required
  • venue : objectId | required ( reference to venue)
  • price: number | required
  • organizer : objectId | required ( reference to organizer)
  • timestamps
Clone this wiki locally