Model contracts


Permissions

User GroupCreate?Read?Update?Delete?
financexxxx
line_managerxxxx
adminx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
createdAtDate
date_sentDate
date_signedDate
filenameString
organisation_idObjectIDOrganisationx
referenceString
sentBoolean
signedBoolean
typeString
updatedAtDate
user_idObjectIDUser

Field Details

__v

{
  "path": "__v",
  "instance": "Number",
  "options": {},
  "validators": []
}

_deleted

{
  "path": "_deleted",
  "instance": "Boolean",
  "options": {
    "default": false,
    "index": true
  },
  "validators": [],
  "defaultValue": false
}

_id

{
  "path": "_id",
  "instance": "ObjectID",
  "options": {
    "auto": true,
    "type": "ObjectId"
  },
  "validators": [],
  "defaultValue": "[Function]"
}

_owner_id

{
  "path": "_owner_id",
  "instance": "ObjectID",
  "options": {
    "link": "User",
    "map_to": "_owner",
    "index": true
  },
  "validators": []
}

_updated_by_id

{
  "path": "_updated_by_id",
  "instance": "ObjectID",
  "options": {
    "link": "User",
    "map_to": "_updated_by",
    "index": true
  },
  "validators": []
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

date_sent

{
  "path": "date_sent",
  "instance": "Date",
  "options": {},
  "validators": []
}

date_signed

{
  "path": "date_signed",
  "instance": "Date",
  "options": {},
  "validators": []
}

filename

{
  "path": "filename",
  "instance": "String",
  "options": {},
  "validators": []
}

organisation_id

{
  "path": "organisation_id",
  "instance": "ObjectID",
  "options": {
    "link": "Organisation",
    "index": true
  },
  "validators": []
}

reference

{
  "path": "reference",
  "instance": "String",
  "options": {},
  "validators": []
}

sent

{
  "path": "sent",
  "instance": "Boolean",
  "options": {},
  "validators": []
}

signed

{
  "path": "signed",
  "instance": "Boolean",
  "options": {},
  "validators": []
}

type

{
  "path": "type",
  "instance": "String",
  "options": {
    "validate": {}
  },
  "validators": [
    {
      "message": "Validator failed for path `{PATH}` with value `{VALUE}`"
    }
  ]
}

Validators

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}

user_id

{
  "path": "user_id",
  "instance": "ObjectID",
  "options": {
    "link": "User"
  },
  "validators": []
}