{
	"name": "table/external/4d/order/waybill.json",
	"table_name": "waybill",
	"table_prefix": "wbl",
	"record_type": ["waybill"],
	"local_table": "waybill",
	"local_record_type": "waybill",
	"table_number": 54,
	"field": [
		{
			"field_name": "additional_data",
			"local_field": "json_data.additional_data",
			"field_type": "text",
			"field_number": 46
		},
		{
			"field_name": "cash_on_deliv_account",
			"local_field": "json_data.cash_on_deliv_account",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 25,
			"length": 80
		},
		{
			"field_name": "cash_on_deliv_reference",
			"local_field": "json_data.cash_on_deliv_reference",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 24,
			"length": 80
		},
		{
			"field_name": "cash_on_delivery",
			"local_field": "json_data.cash_on_delivery",
			"field_type": "double",
			"field_number": 26
		},
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 41,
			"length": 90
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 42,
			"length": 40
		},
		{
			"field_name": "currency_id",
			"local_field": "currency_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 27,
			"length": 40,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"nullable": true
		},
		{
			"field_name": "customer_order_number",
			"local_field": "json_data.customer_order_number",
			"field_type": "varchar",
			"field_length": 255,
			"field_number": 51,
			"length": 510,
			"constraint": ["index"]
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 39,
			"length": 80
		},
		{
			"field_name": "date_",
			"local_field": "date",
			"field_type": "date",
			"field_number": 10
		},
		{
			"field_name": "delivery_address",
			"local_field": "json_data.delivery_address",
			"field_type": "text",
			"field_number": 7,
			"length": 0
		},
		{
			"field_name": "extra_cost",
			"local_field": "json_data.extra_cost",
			"field_type": "double",
			"field_number": 29
		},
		{
			"field_name": "extra_instruction",
			"local_field": "json_data.extra_instruction",
			"field_type": "text",
			"field_number": 21
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 37,
			"constraint": ["index"]
		},
		{
			"field_name": "freight_charger_payer",
			"local_field": "json_data.freight_charger_payer",
			"field_type": "text",
			"field_number": 16
		},
		{
			"field_name": "freight_cost",
			"local_field": "json_data.freight_cost",
			"field_type": "double",
			"field_number": 28
		},
		{
			"field_name": "freight_customer_number",
			"local_field": "json_data.freight_customer_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 49,
			"length": 80
		},
		{
			"field_name": "freight_deal_number",
			"local_field": "json_data.freight_deal_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 50,
			"length": 80
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 45
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 43,
			"length": 40
		},
		{
			"field_name": "number_of_pallets",
			"local_field": "json_data.number_of_pallets",
			"field_type": "integer",
			"field_number": 17
		},
		{
			"field_name": "pallet_length",
			"local_field": "json_data.pallet_length",
			"field_type": "double",
			"field_number": 18
		},
		{
			"field_name": "place_of_departure",
			"local_field": "json_data.place_of_departure",
			"field_type": "text",
			"field_number": 6,
			"length": 0
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 40,
			"length": 80
		},
		{
			"field_name": "receiver_address",
			"local_field": "json_data.receiver_address",
			"field_type": "text",
			"field_number": 4,
			"length": 0
		},
		{
			"field_name": "receiver_customer_number",
			"local_field": "json_data.receiver_customer_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 47,
			"length": 80
		},
		{
			"field_name": "receiver_deal_number",
			"local_field": "json_data.receiver_deal_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 48,
			"length": 80
		},
		{
			"field_name": "receiver_id",
			"local_field": "receiver_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 3,
			"length": 40,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"nullable": true
		},
		{
			"field_name": "receiver_phone",
			"local_field": "json_data.receiver_phone",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 5,
			"length": 80
		},
		{
			"field_name": "receiver_reference",
			"local_field": "json_data.receiver_reference",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 13,
			"length": 160
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 36,
			"length": 90,
			"constraint": ["index"]
		},
		{
			"field_name": "reservation",
			"local_field": "json_data.reservation",
			"field_type": "text",
			"field_number": 23
		},
		{
			"field_name": "sender_address",
			"local_field": "json_data.sender_address",
			"field_type": "text",
			"field_number": 2,
			"length": 0
		},
		{
			"field_name": "sender_customer_number",
			"local_field": "json_data.sender_customer_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 8,
			"length": 80
		},
		{
			"field_name": "sender_deal_number",
			"local_field": "json_data.sender_deal_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 9,
			"length": 80
		},
		{
			"field_name": "sender_reference",
			"local_field": "json_data.sender_reference",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 12,
			"length": 160
		},
		{
			"field_name": "sender_trade_number",
			"local_field": "json_data.sender_trade_number",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 33,
			"length": 40
		},
		{
			"field_name": "state",
			"local_field": "waybill_state",
			"field_type": "integer",
			"field_number": 35,
			"constraint": ["index"]
		},
		{
			"field_name": "term_of_delivery",
			"local_field": "json_data.term_of_delivery",
			"field_type": "text",
			"field_number": 22
		},
		{
			"field_name": "total_price",
			"local_field": "json_data.total_price",
			"field_type": "double",
			"field_number": 32
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 38,
			"length": 120,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 44
		},
		{
			"field_name": "transport_company",
			"local_field": "json_data.transport_company",
			"field_type": "text",
			"field_number": 14
		},
		{
			"field_name": "transport_notes",
			"local_field": "json_data.transport_notes",
			"field_type": "text",
			"field_number": 15
		},
		{
			"field_name": "type_",
			"local_field": "waybill_type",
			"field_type": "integer",
			"field_number": 34
		},
		{
			"field_name": "vat",
			"local_field": "json_data.vat",
			"field_type": "double",
			"field_number": 31
		},
		{
			"field_name": "vat_percent",
			"local_field": "json_data.vat_percent",
			"field_type": "double",
			"field_number": 30
		},
		{
			"field_name": "volume",
			"local_field": "json_data.volume",
			"field_type": "double",
			"field_number": 20
		},
		{
			"field_name": "waybill_id",
			"local_field": "waybill_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 1,
			"length": 40,
			"constraint": ["unique"]
		},
		{
			"field_name": "waybill_number",
			"local_field": "waybill_number",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 11,
			"length": 80
		},
		{
			"field_name": "weight",
			"local_field": "json_data.weight",
			"field_type": "double",
			"field_number": 19
		}
	]
}
