Skip to content

Schemas

Pablo edited this page Nov 9, 2020 · 3 revisions

Schema definitions

Users

  • Admins
  • Administradores de albergues
  • Voluntarios

volunteer:

  • supplies_types: [],
  • services: [],
  • shipping: bool,
  • all_terrain_vehicle:bool,
  • type: [supply_center, individual, company],
  • city:
  • municipality:
  • shelters: [ ],
  • active:bool

Shelters:

  • id:uuid,
  • name:string,
  • address:string,
  • location: latlng,
  • all_terrain_vehicle:bool,
  • category:[ ONG, government, rally_point ]

services:

  • to:shelter_id
  • status: [pending, assigned, done],
  • required_at: datetime,
  • assignee:volunteer_id,
  • type: [supplies, services]

Supplies

  • id: uuid
  • Tipo:string
  • name:string
  • description:
  • required_by: [woman, men, child],
  • required_by_ages: range[int,int]
  • assigned_to:uuid
  • assigned_at:datetime
  • priority:int

shipping:

  • from: shelter_uuid,
  • to:
  • scheduled_at:
  • status:
  • type:

Requisitions:

  • id: uuid
  • shelter_id:uuid,
  • shipping:bool
  • all_terrain_vehicle_required:bool

Requisition items:

  • requisition_id:uuid
  • supply_ud: uuid
  • desired_qty: int
  • provided_qty: int

requisition_trail:

  • requisition_id:
  • meta: {}

notifications:

  • requisition_id,
  • volunteer_id,