{
	"name": "table/external/4d/bookkeeping/voucher.json",
	"table_name": "voucher",
	"table_prefix": "vo",
	"record_type": [""],
	"local_table": "bookkeeping_voucher",
	"local_record_type": "",
	"table_number": 4,
	"field": [
		{
			"field_name": "bank_statement",
			"local_field": "bank_statement",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 15
		},
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 20
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 21
		},
		{
			"field_name": "currency_id",
			"local_field": "currency_id",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 14,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"nullable": true
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 18
		},
		{
			"field_name": "date_",
			"local_field": "target_date",
			"field_type": "date",
			"field_number": 4,
			"constraint": ["index"]
		},
		{
			"field_name": "debet",
			"local_field": "json_data.debet_price",
			"field_type": "double",
			"field_number": 7
		},
		{
			"field_name": "entry_date",
			"local_field": "json_data.entry_date",
			"field_type": "date",
			"field_number": 1
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 3,
			"constraint": ["index"]
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 10
		},
		{
			"field_name": "kredit",
			"local_field": "json_data.kredit_price",
			"field_type": "double",
			"field_number": 8
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 22
		},
		{
			"field_name": "month_",
			"local_field": "json_data.month",
			"field_type": "integer",
			"field_number": 12,
			"constraint": ["index"]
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 19
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 16,
			"constraint": ["unique"]
		},
		{
			"field_name": "reference",
			"local_field": "reference",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 9
		},
		{
			"field_name": "state",
			"local_field": "voucher_state",
			"field_type": "integer",
			"field_number": 6,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 17,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 23
		},
		{
			"field_name": "type_",
			"local_field": "voucher_type",
			"field_type": "integer",
			"field_number": 5,
			"constraint": ["index"]
		},
		{
			"field_name": "voucher_id",
			"local_field": "voucher_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 2,
			"constraint": ["unique"]
		},
		{
			"field_name": "voucher_number",
			"local_field": "voucher_number",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 13,
			"constraint": ["unique"]
		},
		{
			"field_name": "year_",
			"local_field": "json_data.year",
			"field_type": "integer",
			"field_number": 11,
			"constraint": ["index"]
		}
	]
}
