Model sentlineitems
Permissions
| User Group | Create? | Read? | Update? | Delete? | 
|---|
| admin | x | x | x | x | 
| owner | x | x |  |  | 
| primary_member |  | x |  |  | 
| user |  | x |  |  | 
| all |  |  |  |  | 
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 |  |  |  |  |  | 
| _updated_by_id | ObjectID | User | _updated_by |  | x |  | 
| amount | Number |  |  |  |  |  | 
| booking_id | ObjectID | Booking |  |  |  |  | 
| comment | String |  |  |  |  |  | 
| createdAt | Date |  |  |  |  |  | 
| date_created | Date |  |  | function now() { [native code] } |  |  | 
| date_end | Date |  |  |  |  |  | 
| date_start | Date |  |  |  |  |  | 
| description | String |  |  |  |  |  | 
| discount | Number |  |  | 0 |  |  | 
| invoice_id | ObjectID | Invoice |  |  | x |  | 
| is_quote | Boolean |  |  |  |  |  | 
| license_id | ObjectID | License |  |  |  |  | 
| lineitem_id | ObjectID | LineItem |  |  |  |  | 
| location_id | ObjectID | Location |  |  | x |  | 
| order | Number |  |  |  |  |  | 
| organisation_id | ObjectID | Organisation |  |  | x |  | 
| price | Number |  |  |  |  |  | 
| product_id | ObjectID | Product |  |  |  |  | 
| tax_type | String |  |  |  |  |  | 
| type | String |  |  |  |  |  | 
| updatedAt | Date |  |  |  |  |  | 
| user_id | ObjectID | User |  |  |  |  | 
| xero_account | String |  |  |  |  |  | 
| xero_id | 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": {},
	"_index": null
}{
	"path": "_updated_by_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_updated_by_id"
	],
	"options": {
		"link": "User",
		"map_to": "_updated_by",
		"index": true
	},
	"_index": true
}{
	"path": "amount",
	"instance": "Number",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		},
		{
			"message": "Validator failed for path `{PATH}` with value `{VALUE}`",
			"type": "user defined"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"amount"
	],
	"options": {
		"required": true
	},
	"_index": null,
	"isRequired": true,
	"originalRequiredValue": true
}{
	"path": "booking_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"booking_id"
	],
	"options": {
		"link": "Booking"
	},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "comment",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"comment"
	],
	"options": {},
	"_index": null
}{
	"path": "createdAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [
		null,
		null
	],
	"_presplitPath": [
		"createdAt"
	],
	"options": {
		"immutable": true
	},
	"_index": null,
	"$immutable": true
}{
	"path": "date_created",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"date_created"
	],
	"options": {},
	"_index": null
}{
	"path": "date_end",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"date_end"
	],
	"options": {},
	"_index": null
}{
	"path": "date_start",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"date_start"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "description",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"description"
	],
	"options": {},
	"_index": null
}{
	"path": "discount",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"discount"
	],
	"options": {
		"default": 0
	},
	"_index": null,
	"defaultValue": 0
}{
	"path": "invoice_id",
	"instance": "ObjectID",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"invoice_id"
	],
	"options": {
		"link": "Invoice",
		"required": true,
		"index": true
	},
	"_index": true,
	"isRequired": true,
	"originalRequiredValue": true
}{
	"path": "is_quote",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"is_quote"
	],
	"options": {},
	"_index": null
}{
	"path": "license_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"license_id"
	],
	"options": {
		"link": "License"
	},
	"_index": null
}{
	"path": "lineitem_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"lineitem_id"
	],
	"options": {
		"link": "LineItem"
	},
	"_index": null
}{
	"path": "location_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"location_id"
	],
	"options": {
		"link": "Location",
		"index": true
	},
	"_index": true
}{
	"path": "order",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"order"
	],
	"options": {},
	"_index": null
}{
	"path": "organisation_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"organisation_id"
	],
	"options": {
		"link": "Organisation",
		"index": true
	},
	"_index": true
}{
	"path": "price",
	"instance": "Number",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"price"
	],
	"options": {
		"required": true
	},
	"_index": null,
	"isRequired": true,
	"originalRequiredValue": true
}{
	"path": "product_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"product_id"
	],
	"options": {
		"link": "Product"
	},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "tax_type",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"tax_type"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "type",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"type"
	],
	"options": {},
	"_index": null
}{
	"path": "updatedAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"updatedAt"
	],
	"options": {},
	"_index": null
}{
	"path": "user_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"user_id"
	],
	"options": {
		"link": "User"
	},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "xero_account",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"xero_account"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "xero_id",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"xero_id"
	],
	"options": {},
	"_index": null
}