{
	"name": "table/external/4d/other/_link.json",
	"table_name": "_link",
	"table_prefix": "_lnk",
	"record_type": ["4d"],
	"local_table": "link",
	"local_record_type": "4d",
	"table_number": 22,
	"default_order": [
		{
			"field": "record_id",
			"order": ">"
		}
	],
	"field": [
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 1,
			"constraint": ["primary key"],
			"number": 1
		},
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 14,
			"constraint": ["index"]
		},
		{
			"field_name": "link1",
			"local_field": "json_data.parent_id",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 3,
			"constraint": ["index"],
			"number": 3
		},
		{
			"field_name": "link2",
			"local_field": "json_data.child_id",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 4,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "record_id",
					"linked_table": "additional_field"
				}
			],
			"number": 4
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 2,
			"constraint": ["index"]
		},
		{
			"field_name": "type_",
			"local_field": "json_data.type",
			"field_type": "integer",
			"field_number": 5
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.creator_id",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 8,
			"constraint": ["index"]
		},
		{
			"field_name": "creation_date",
			"local_field": "create_time",
			"field_type": "date",
			"field_number": 9,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_id",
			"local_field": "",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 11,
			"constraint": ["index"]
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 12
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 15
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 16
		},
		{
			"field_name": "creation_time",
			"local_field": "json_data.creation_time",
			"field_type": "time",
			"field_number": 10
		},
		{
			"field_name": "state",
			"local_field": "json_data.state",
			"field_type": "integer",
			"field_number": 6
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 7
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 13,
			"constraint": ["index"]
		}
	]
}
