Skip to content

Latest commit

 

History

History
75 lines (64 loc) · 1.19 KB

File metadata and controls

75 lines (64 loc) · 1.19 KB

Jaguar Hackathon Covid App

Help people get & receive help. And also more stuff.

Dependencies

Models

  • Users
  • Petitions
  • Participants

Notes

User.schema = {
  ...,
  petitions: [...],
  participations: [...],
}

Petition.schema = {
  items: [],
  userId: Number,
  participants: [],
  loanAmount: Number,
  status: ['pending', 'processing', 'complete'],
  type: ['receive', 'provide', 'deliver', 'borrow'],
  startLoc: {
    lat: Number,
    long: Number,
    address: String,
    city: String,
    country: String,
  },
  endLoc: {
    lat: Number,
    long: Number,
    address: String,
    city: String,
    country: String,
  },
}

Participant.schema = {
  userId: Number,
  payAmount: Number,
  petitionId: Number,
  type: ['receiver', 'provider', 'driver', 'loaner', 'borrower', 'payer',],
  endLoc: {
    lat: Number,
    long: Number,
    address: String,
    city: String,
    country: String,
  },
}

Item.schema = {
  name: '',
  type: [],
  kg: Number,
  userId: Number,
  quantity: Number,
  petitionId: Number,
}

Getting Up