Model locations
Permissions
User Group | Create? | Read? | Update? | Delete? |
---|
setup | x | x | x | x |
super_user | x | x | x | x |
admin | | x | | |
user | | x | | |
all | | x | | |
Fields
Name | Type | Link | Maps To | Default | Indexed? | Unique? |
---|
__v | Number | | | | | |
_deleted | Boolean | | | false | x | |
_id | ObjectID | | | function defaultId() {
return new oid();
} | | |
_owner_id | ObjectID | User | _owner | | x | |
_updated_by_id | ObjectID | User | _updated_by | | x | |
access_instructions | String | | | | | |
active | Boolean | | | true | x | |
address | String | | | | | |
background_colour | String | | | | | |
bank_account | String | | | | | |
bank_code | String | | | | | |
city | String | | | | | |
clay_id | String | | | | | |
community_manager_email | String | | | | | |
community_manager_name | String | | | | | |
community_manager_tel | String | | | | | |
contract_addendum | String | | | | | |
contract_prepend | String | | | | | |
contract_template | String | | | | | |
createdAt | Date | | | | | |
deposit_product_id | ObjectID | Product | deposit_product | | | |
description | String | | | | | |
email | String | | | | | |
flexi_agreement_addendum | String | | | | | |
flexi_agreement_prepend | String | | | | | |
flexi_agreement_template | String | | | | | |
flexi_membership_product_id | ObjectID | Product | flexi_membership_product | | | |
headquarters | Boolean | | | false | x | |
img | String | | | | | |
logo | String | | | | | |
mail_template | String | | | | | |
map_img | String | | | | | |
map_link | String | | | | | |
matrix_room | String | | | | | |
name | String | | | | | |
nas_ip | String | | | | | |
operator | String | | | | | |
proposal_addendum | String | | | | | |
proposal_prepend | String | | | | | |
proposal_template | String | | | | | |
short_name | String | | | | | |
suburb | String | | | | | |
timezone | String | | | | | |
timezone_offset | String | | | | | |
updatedAt | Date | | | | | |
urlid | String | | | | | |
website | String | | | | | |
what3words | Array | | | function() {
// Leave it up to `cast()` to convert the array
return fn
? defaultArr.call(this)
: defaultArr != null
? [].concat(defaultArr)
: [];
} | | |
xero_branding_theme | String | | | | | |
xero_creditcard_id | String | | | | | |
xero_eft_id | String | | | | | |
xero_fnb_ebucks_id | String | | | | | |
xero_paypal_id | String | | | | | |
xero_tax_type | String | | | | | |
xero_tenant_id | String | | | | | |
xero_tracking_name | String | | | | | |
Raw definition
{
"path": "__v",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"__v"
],
"options": {},
"_index": null
}
{
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false
}
{
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null
}
{
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_index": true
}
{
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "access_instructions",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"access_instructions"
],
"options": {},
"_index": null
}
{
"path": "active",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"active"
],
"options": {
"default": true,
"index": true
},
"_index": true,
"defaultValue": true
}
{
"enumValues": [],
"regExp": null,
"path": "address",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"address"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "background_colour",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"background_colour"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "bank_account",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"bank_account"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "bank_code",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"bank_code"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "city",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"city"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "clay_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"clay_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "community_manager_email",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"community_manager_email"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "community_manager_name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"community_manager_name"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "community_manager_tel",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"community_manager_tel"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "contract_addendum",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"contract_addendum"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "contract_prepend",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"contract_prepend"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "contract_template",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"contract_template"
],
"options": {},
"_index": null
}
{
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true
}
{
"path": "deposit_product_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"deposit_product_id"
],
"options": {
"link": "Product",
"map_to": "deposit_product"
},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "description",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"description"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "email",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"email"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "flexi_agreement_addendum",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"flexi_agreement_addendum"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "flexi_agreement_prepend",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"flexi_agreement_prepend"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "flexi_agreement_template",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"flexi_agreement_template"
],
"options": {},
"_index": null
}
{
"path": "flexi_membership_product_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"flexi_membership_product_id"
],
"options": {
"link": "Product",
"map_to": "flexi_membership_product"
},
"_index": null
}
{
"path": "headquarters",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"headquarters"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false
}
{
"enumValues": [],
"regExp": null,
"path": "img",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"img"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "logo",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"logo"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "mail_template",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"mail_template"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "map_img",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"map_img"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "map_link",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"map_link"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "matrix_room",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"matrix_room"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"name"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "nas_ip",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"nas_ip"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "operator",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"operator"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "proposal_addendum",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"proposal_addendum"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "proposal_prepend",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"proposal_prepend"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "proposal_template",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"proposal_template"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "short_name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"short_name"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "suburb",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"suburb"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "timezone",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"timezone"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "timezone_offset",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"timezone_offset"
],
"options": {},
"_index": null
}
{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "urlid",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"urlid"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "website",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"website"
],
"options": {},
"_index": null
}
{
"schemaOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"perms": {
"setup": "crud",
"super_user": "crud",
"admin": "r",
"user": "r",
"all": "r"
},
"typeKey": "type",
"id": true,
"_id": true,
"validateBeforeSave": true,
"read": null,
"shardKey": null,
"discriminatorKey": "__t",
"autoIndex": null,
"minimize": true,
"optimisticConcurrency": false,
"versionKey": "__v",
"capped": false,
"bufferCommands": true,
"strictQuery": true,
"strict": true,
"_perms": {
"admin": "r",
"owner": "",
"user": "r",
"all": "r",
"setup": "crud",
"super_user": "crud"
},
"pluralization": true
},
"caster": {
"enumValues": [],
"regExp": null,
"path": "what3words",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"what3words"
],
"options": {},
"_index": null,
"_arrayPath": "what3words.$",
"_arrayParentPath": "what3words"
},
"$embeddedSchemaType": {
"enumValues": [],
"regExp": null,
"path": "what3words",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"what3words"
],
"options": {},
"_index": null,
"_arrayPath": "what3words.$",
"_arrayParentPath": "what3words"
},
"$isMongooseArray": true,
"path": "what3words",
"instance": "Array",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"what3words"
],
"options": {
"type": [
null
]
},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_branding_theme",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_branding_theme"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_creditcard_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_creditcard_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_eft_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_eft_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_fnb_ebucks_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_fnb_ebucks_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_paypal_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_paypal_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_tax_type",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_tax_type"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_tenant_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_tenant_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "xero_tracking_name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"xero_tracking_name"
],
"options": {},
"_index": null
}