{
	"name": "table/external/4d/product/work_order_material.json",
	"table_name": "work_order_material",
	"table_prefix": "wom",
	"main_table": "work_order",
	"record_type": ["schedule"],
	"local_table": "product_material",
	"local_record_type": "schedule",
	"table_number": 58,
	"field": [
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 10
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 11
		},
		{
			"field_name": "explanation",
			"local_field": "description",
			"field_type": "text",
			"field_number": 5
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 15,
			"constraint": ["index"]
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 9
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 12
		},
		{
			"field_name": "production_lot",
			"local_field": "production_order_id",
			"field_type": "varchar",
			"field_length": 35,
			"field_number": 6,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "production_lot",
					"linked_table": "work_order"
				}
			]
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 17
		},
		{
			"field_name": "quantity__unit",
			"local_field": "amount",
			"field_type": "double",
			"field_number": 4
		},
		{
			"field_name": "raw_material_id",
			"local_field": "material_id",
			"field_type": "varchar",
			"field_length": 44,
			"field_number": 3,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"nullable": true
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 255,
			"field_number": 13,
			"constraint": ["unique"]
		},
		{
			"field_name": "row_number",
			"local_field": "row_number",
			"field_type": "integer",
			"field_number": 2
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 50,
			"field_number": 16,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 14
		},
		{
			"field_name": "work__position_num_id",
			"local_field": "product_id",
			"field_type": "varchar",
			"field_length": 30,
			"field_number": 1,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "work__position_num_id",
					"linked_table": "work"
				}
			],
			"nullable": true
		},
		{
			"field_name": "work_need_amount",
			"local_field": "json_data.work_need_amount",
			"field_type": "double",
			"field_number": 8
		},
		{
			"field_name": "work_phase",
			"local_field": "work_phase_number",
			"field_type": "integer",
			"field_number": 7
		}
	]
}
