{
	"name": "table/external/4d/manager/product/work_material_actual.json",
	"table_name": "work_material_actual",
	"table_prefix": "wma",
	"main_table": "work_order",
	"record_type": ["actual"],
	"local_table": "product_material",
	"local_record_type": "actual",
	"table_number": 46,
	"field": [
		{
			"field_name": "amount__design_unit",
			"field_number": 3,
			"field_type": "double",
			"local_field": "amount"
		},
		{
			"field_name": "amount__design_unit_2",
			"field_number": 4,
			"field_type": "double",
			"local_field": "json_data.amount_in_unit_2"
		},
		{
			"field_name": "calc_sales_price__unit",
			"field_number": 5,
			"field_type": "double",
			"local_field": "json_data.calc_sales_price__unit"
		},
		{
			"field_name": "change_id",
			"field_number": 22,
			"field_type": "varchar",
			"length": 90,
			"local_field": "modify_id"
		},
		{
			"field_name": "cost_price_total",
			"field_number": 7,
			"field_type": "double",
			"local_field": "cost_price"
		},
		{
			"field_name": "creator_id",
			"field_number": 23,
			"field_type": "varchar",
			"length": 40,
			"local_field": "create_user"
		},
		{
			"field_name": "customer_project",
			"field_number": 18,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "firm_id",
			"field_number": 13,
			"field_type": "integer",
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "info",
			"field_number": 9,
			"field_type": "varchar",
			"length": 0,
			"local_field": "info"
		},
		{
			"field_name": "modifier_id",
			"field_number": 24,
			"field_type": "varchar",
			"length": 40,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "net_amount__design_unit",
			"field_number": 20,
			"field_type": "double",
			"local_field": "json_data.net_amount"
		},
		{
			"field_name": "net_amount__design_unit_2",
			"field_number": 21,
			"field_type": "double",
			"local_field": "json_data.net_amount__design_unit_2"
		},
		{
			"field_name": "parcel_code",
			"field_number": 26,
			"field_type": "varchar",
			"length": 40,
			"local_field": "json_data.parcel_code"
		},
		{
			"field_name": "production_lot",
			"field_number": 10,
			"field_type": "varchar",
			"length": 70,
			"local_field": "production_lot"
		},
		{
			"field_name": "profit_multiplier",
			"field_number": 6,
			"field_type": "double",
			"local_field": "profit_multiplier"
		},
		{
			"field_name": "project_id",
			"field_number": 19,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.project_id"
		},
		{
			"field_name": "raw_material_id",
			"field_number": 2,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"length": 88,
			"local_field": "material_id",
			"nullable": true
		},
		{
			"constraint": ["unique"],
			"field_name": "record_id",
			"field_number": 12,
			"field_type": "varchar",
			"length": 90,
			"local_field": "record_id"
		},
		{
			"field_name": "sales_price_total",
			"field_number": 8,
			"field_type": "double",
			"local_field": "sales_price"
		},
		{
			"field_name": "stock_event_id",
			"field_number": 11,
			"field_type": "varchar",
			"length": 20,
			"local_field": "stock_event_id"
		},
		{
			"field_name": "transfer_id",
			"field_number": 17,
			"field_type": "varchar",
			"length": 120,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 25,
			"field_type": "integer",
			"local_field": "json_data.transfer_state"
		},
		{
			"field_name": "unit",
			"field_number": 15,
			"field_type": "varchar",
			"length": 20,
			"local_field": "unit"
		},
		{
			"field_name": "unit_2",
			"field_number": 16,
			"field_type": "varchar",
			"length": 20,
			"local_field": "json_data.unit_2"
		},
		{
			"field_name": "work__position_num_id",
			"field_number": 1,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "work__position_num_id",
					"linked_table": "work"
				}
			],
			"length": 60,
			"local_field": "json_data.work_number",
			"nullable": true
		},
		{
			"field_name": "work_phase_actual_id",
			"field_number": 14,
			"field_type": "integer",
			"local_field": "work_phase_number"
		}
	],
	"default_field": "table/default_field.json"
}
