{
	"name": "table/external/4d/manager/bookkeeping/sales_order_code_account.json",
	"table_name": "sales_order_code_account",
	"table_prefix": "soca",
	"main_table": "account",
	"record_type": ["sales_account"],
	"local_table": "order_code",
	"local_record_type": "sales_account",
	"table_number": 7,
	"field": [{
			"field_length": 24,
			"field_name": "account_id",
			"field_number": 3,
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "account_id",
				"linked_table": "account"
			}],
			"local_field": "json_data.order_code_account.account_id",
			"nullable": true
		},
		{
			"field_length": 90,
			"field_name": "change_id",
			"field_number": 10,
			"local_field": "json_data.order_code_account.change_id"
		},
		{
			"field_length": 40,
			"field_name": "creator_id",
			"field_number": 11,
			"local_field": "json_data.order_code_account.creator_id"
		},
		{
			"field_length": 80,
			"field_name": "customer_project",
			"field_number": 8,
			"local_field": "json_data.order_code_account.customer_project"
		},
		{
			"field_length": 4,
			"field_name": "discount_type",
			"field_number": 2,
			"local_field": "json_data.order_code_account.discount_type"
		},
		{
			"field_name": "firm_id",
			"field_number": 6,
			"local_field": "json_data.order_code_account.firm_id"
		},
		{
			"field_name": "info",
			"field_number": 4,
			"local_field": "json_data.order_code_account.info"
		},
		{
			"field_length": 40,
			"field_name": "modifier_id",
			"field_number": 12,
			"local_field": "json_data.order_code_account.modifier_id"
		},
		{
			"field_length": 80,
			"field_name": "project_id",
			"field_number": 9,
			"local_field": "json_data.order_code_account.project_id"
		},
		{
			"constraint": ["unique"],
			"field_length": 90,
			"field_name": "record_id",
			"field_number": 5,
			"local_field": "json_data.order_code_account.record_id"
		},
		{
			"field_length": 12,
			"field_name": "sales_order_code_id",
			"field_number": 1,
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "sales_order_code_id",
				"linked_table": "sales_order_code"
			}],
			"local_field": "json_data.order_code_account.order_code_id",
			"nullable": true
		},
		{
			"field_length": 120,
			"field_name": "transfer_id",
			"field_number": 7,
			"local_field": "json_data.order_code_account.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 13,
			"local_field": "json_data.order_code_account.transfer_state"
		},
		{
			"field_name": "unused",
			"field_number": 14
		},
		{
			"field_name": "unused2",
			"field_number": 15
		}
	],
	"default_field": "table/default_field.json",
	"local_subtable": "json_data.order_code_account"
}