{
	"name": "table/external/4d/person/company_person.json",
	"info": "table has no unique id, create id using sequence number",
	"table_name": "company_person",
	"table_prefix": "cope",
	"table_number": 14,
	"record_type": ["customer"],
	"main_table": "company",
	"local_table": "person",
	"local_record_type": "customer",
	"default_order": [
		{
			"field": "full_name",
			"order": ">"
		}
	],
	"field": [
		{
			"constraint": ["primary key"],
			"field_length": 45,
			"field_name": "record_id",
			"local_field": "record_id",
			"field_number": 18,
			"field_type": "varchar"
		},
		{
			"constraint": ["index"],
			"field_length": 45,
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_number": 12,
			"field_type": "varchar"
		},
		{
			"constraint": ["index"],
			"field_length": 20,
			"field_name": "class",
			"field_number": 10,
			"field_type": "varchar",
			"local_field": "json_data.class"
		},
		{
			"constraint": ["index"],
			"field_length": 12,
			"field_name": "company_id",
			"local_field": "json_data.company_id",
			"field_number": 1,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"nullable": true
		},
		{
			"field_length": 20,
			"field_name": "creator_id",
			"field_number": 23,
			"field_type": "varchar",
			"local_field": "json_data.create_user"
		},
		{
			"field_length": 40,
			"field_name": "customer_project",
			"field_number": 21,
			"field_type": "varchar",
			"local_field": "json_data.customer_project"
		},
		{
			"field_length": 20,
			"field_name": "direct_fax_number",
			"field_number": 9,
			"field_type": "varchar",
			"local_field": "json_data.direct_fax_number"
		},
		{
			"field_length": 20,
			"field_name": "direct_telephone_number",
			"field_number": 3,
			"field_type": "varchar",
			"local_field": "json_data.direct_telephone_number"
		},
		{
			"field_length": 80,
			"field_name": "email",
			"field_number": 13,
			"field_type": "varchar",
			"local_field": "email"
		},
		{
			"constraint": ["index"],
			"field_name": "firm_id",
			"field_number": 19,
			"field_type": "integer",
			"local_field": "json_data.firm_id"
		},
		{
			"field_length": 20,
			"field_name": "first_name",
			"field_number": 7,
			"field_type": "varchar",
			"local_field": "first_name"
		},
		{
			"field_name": "info",
			"field_number": 6,
			"field_type": "text",
			"local_field": "info"
		},
		{
			"constraint": ["index"],
			"field_length": 35,
			"field_name": "last_name",
			"field_number": 2,
			"field_type": "varchar",
			"local_field": "last_name"
		},
		{
			"field_length": 20,
			"field_name": "mobile_phone",
			"field_number": 8,
			"field_type": "varchar",
			"local_field": "json_data.mobile_phone"
		},
		{
			"field_length": 20,
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_number": 24,
			"field_type": "varchar"
		},
		{
			"field_length": 30,
			"field_name": "position_",
			"field_number": 5,
			"field_type": "varchar",
			"local_field": "position"
		},
		{
			"field_length": 10,
			"field_name": "post_code",
			"field_number": 15,
			"field_type": "varchar",
			"local_field": "post_code"
		},
		{
			"field_length": 30,
			"field_name": "post_office",
			"field_number": 16,
			"field_type": "varchar",
			"local_field": "post_office"
		},
		{
			"field_length": 40,
			"field_name": "project_id",
			"field_number": 22,
			"field_type": "varchar",
			"local_field": "json_data.project_id"
		},
		{
			"field_name": "state",
			"field_number": 27,
			"field_type": "integer",
			"local_field": "person_state"
		},
		{
			"field_length": 66,
			"field_name": "street_address",
			"field_number": 14,
			"field_type": "varchar",
			"local_field": "address"
		},
		{
			"field_length": 30,
			"field_name": "title",
			"field_number": 4,
			"field_type": "varchar",
			"local_field": "title"
		},
		{
			"constraint": ["index"],
			"field_length": 60,
			"field_name": "transfer_id",
			"field_number": 20,
			"field_type": "varchar",
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 25,
			"field_type": "integer",
			"local_field": "json_data.transfer_state"
		},
		{
			"field_name": "type_",
			"field_number": 26,
			"field_type": "integer",
			"local_field": "json_data.type"
		},
		{
			"constraint": ["index"],
			"field_length": 56,
			"field_name": "whole_name",
			"field_number": 11,
			"field_type": "varchar",
			"local_field": "full_name"
		},
		{
			"field_length": 80,
			"field_name": "www",
			"field_number": 17,
			"field_type": "varchar",
			"local_field": "json_data.www"
		}
	]
}
