Skip to content

Data structures

Rory McElearney edited this page Sep 20, 2016 · 2 revisions

Case

cases =
[
  {
   caseId: number, //automatically created
   routines:
    {
      web: boolean, //tickbox
      mc: boolean, //tickbox
      tb: boolean, //tickbox
      nc: boolean, //tickbox
      police: boolean, //tickbox
      pc: boolean, //tickbox
      sp: boolean, //tickbox
      info: boolean, //tickbox
      referral: boolean, //tickbox
      area: string, //textfield
      code: string, //textfield
      operation: string, //textfield
    },
   contacts:
    [
      {
        name: string, //textfield
        email: string, //textfield
        phoneNumber: string, //textfield
      }
    ],
   timeline:
    {
      dateCreated: datetime, //automatically created
      username: string, //automatically created
      timelineTitle: string, //textfield
      timelineBody: string, //textarea
    },
   notes:
    [
     {
       dateCreated: datetime, //automatically created
       username: string, //automatically created
       noteTitle: string, //textfield
       noteBody: string, //textarea
     },
     {
       dateCreated: datetime, //automatically created
       username: string, //automatically created
       noteTitle: string, //textfield
       noteBody: string, //textarea
     },
    ]
  },
]

Task

tasks =
[
  {
    taskId: number, //automatically created
    dateCreated: datetime, //automatically created
    username: string, //automatically created
    caseID: string, //call to case list to create dropdown or can be left blank
    dueDate: date, //calendar user input
    taskTitle: string, //textfield
    taskBody: string, //textarea
  }
]
Clone this wiki locally