Model woocommerce_memberships


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
ownerxxxx
userx
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
cancelled_dateDate
createdAtDate
customer_idNumberx
date_createdDate
date_modifiedDate
end_dateDate
idNumberx
orderMixed
paused_dateDate
paused_intervalsArray of Mixed[Function]
productMixed
start_dateDate
statusString
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": {
    "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": []
}

cancelled_date

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

createdAt

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

customer_id

{
  "path": "customer_id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

date_created

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

date_modified

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

end_date

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

id

{
  "path": "id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

order

{
  "path": "order",
  "instance": "Mixed",
  "options": {},
  "validators": []
}

paused_date

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

paused_intervals

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

product

{
  "path": "product",
  "instance": "Mixed",
  "options": {},
  "validators": []
}

start_date

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

status

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

updatedAt

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