Model wallettypes


Permissions

User GroupCreate?Read?Update?Delete?
setupxxxx
adminx
userx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectID
_updated_by_idObjectIDUser_updated_byx
createdAtDate
date_createdDate[Function]
nameString
priorityNumber
productsArray of ObjectID[Function]
rand_valueNumber
topup_periodStringactivex
unitString
updatedAtDate

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": {},
  "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_created

{
  "path": "date_created",
  "instance": "Date",
  "options": {},
  "validators": [],
  "defaultValue": "[Function]"
}

name

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

priority

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

products

{
  "path": "products",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "ObjectID"
}

rand_value

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

topup_period

{
  "path": "topup_period",
  "instance": "String",
  "options": {
    "validate": {},
    "index": true,
    "default": "active"
  },
  "validators": [
    {
      "message": "Validator failed for path `{PATH}` with value `{VALUE}`"
    }
  ],
  "defaultValue": "active"
}

Validators

unit

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

updatedAt

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