{
	"name": "table/external/4d/manager/product/work_order.json",
	"table_name": "work_order",
	"table_prefix": "wo",
	"main_table": "work",
	"record_type": [""],
	"local_table": "production_order",
	"local_record_type": "",
	"table_number": 44,
	"field": [
		{
			"field_name": "act_finish_date",
			"field_number": 8,
			"field_type": "date",
			"local_field": "json_data.actual_end_date"
		},
		{
			"field_name": "act_finish_week",
			"field_number": 7,
			"field_type": "integer"
		},
		{
			"field_name": "additional_data",
			"field_number": 45,
			"field_type": "varchar",
			"length": 0,
			"local_field": "json_data"
		},
		{
			"field_name": "change_id",
			"field_number": 49,
			"field_type": "varchar",
			"length": 90,
			"local_field": "modify_id"
		},
		{
			"field_name": "company_id",
			"field_number": 11,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"length": 24,
			"local_field": "company_id",
			"nullable": true
		},
		{
			"field_name": "creation_date",
			"field_number": 37,
			"field_type": "date",
			"local_field": "json_data.creation_date"
		},
		{
			"field_name": "creator_id",
			"field_number": 50,
			"field_type": "varchar",
			"length": 40,
			"local_field": "create_user"
		},
		{
			"field_name": "critical_date",
			"field_number": 38,
			"field_type": "date",
			"local_field": "json_data.critical_end_date"
		},
		{
			"field_name": "critical_date_delayed",
			"field_number": 40,
			"field_type": "date",
			"local_field": "json_data.critical_delayed_end_date"
		},
		{
			"field_name": "critical_date_real",
			"field_number": 41,
			"field_type": "date",
			"local_field": "json_data.critical_real_end_date"
		},
		{
			"field_name": "critical_start_date",
			"field_number": 43,
			"field_type": "date",
			"local_field": "json_data.critical_start_date"
		},
		{
			"field_name": "critical_start_difference",
			"field_number": 47,
			"field_type": "double",
			"local_field": "json_data.critical_start_difference"
		},
		{
			"field_name": "critical_start_time",
			"field_number": 44,
			"field_type": "time without time zone"
		},
		{
			"field_name": "delivery_date",
			"field_number": 17,
			"field_type": "date",
			"local_field": "json_data.delivery_date"
		},
		{
			"field_name": "drawing_number",
			"field_number": 24,
			"field_type": "varchar",
			"length": 80,
			"local_field": "drawing_number"
		},
		{
			"field_name": "est_finish_date",
			"field_number": 30,
			"field_type": "date",
			"local_field": "json_data.est_finish_date"
		},
		{
			"field_name": "est_finish_difference",
			"field_number": 48,
			"field_type": "double",
			"local_field": "json_data.est_finish_difference"
		},
		{
			"field_name": "est_finish_time",
			"field_number": 35,
			"field_type": "time without time zone",
			"local_field": "json_data.est_finish_time"
		},
		{
			"field_name": "est_finish_week",
			"field_number": 29,
			"field_type": "integer"
		},
		{
			"field_name": "failed_amount",
			"field_number": 39,
			"field_type": "double",
			"local_field": "failed_amount"
		},
		{
			"field_name": "finished_work_phase",
			"field_number": 26,
			"field_type": "integer",
			"local_field": "json_data.finished_work_phase"
		},
		{
			"field_name": "firm_id",
			"field_number": 27,
			"field_type": "integer",
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "in_report",
			"field_number": 23,
			"field_type": "boolean",
			"local_field": "json_data.in_report"
		},
		{
			"field_name": "info",
			"field_number": 15,
			"field_type": "varchar",
			"length": 0,
			"local_field": "info"
		},
		{
			"field_name": "material_act_arrival_date",
			"field_number": 33,
			"field_type": "date",
			"local_field": "json_data.material_actual_arrival_date"
		},
		{
			"field_name": "material_est_arrival_date",
			"field_number": 34,
			"field_type": "date",
			"local_field": "json_data.material_estimated_arrival_date"
		},
		{
			"field_name": "modifier_id",
			"field_number": 51,
			"field_type": "varchar",
			"length": 40,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "parent_production_lot",
			"field_number": 53,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.parent_production_lot"
		},
		{
			"field_name": "partial_delivery_number",
			"field_number": 19,
			"field_type": "smallint",
			"local_field": "json_data.partial_delivery_number"
		},
		{
			"field_name": "pricing_state",
			"field_number": 56,
			"field_type": "integer",
			"local_field": "json_data.pricing_state"
		},
		{
			"field_name": "print_date",
			"field_number": 16,
			"field_type": "date",
			"local_field": "json_data.print_date"
		},
		{
			"field_name": "produced_amount",
			"field_number": 9,
			"field_type": "double",
			"local_field": "produced_amount"
		},
		{
			"constraint": ["unique"],
			"field_name": "production_lot",
			"field_number": 3,
			"field_type": "varchar",
			"length": 70,
			"local_field": "production_lot"
		},
		{
			"field_name": "project_id",
			"field_number": 46,
			"field_type": "varchar",
			"length": 80,
			"local_field": "project_id"
		},
		{
			"field_name": "purchase_order_id",
			"field_number": 14,
			"field_type": "varchar",
			"length": 20,
			"local_field": "json_data.purchase_order_id"
		},
		{
			"constraint": ["unique"],
			"field_name": "record_id",
			"field_number": 36,
			"field_type": "varchar",
			"length": 90,
			"local_field": "record_id"
		},
		{
			"field_name": "remaining_amount",
			"field_number": 20,
			"field_type": "double",
			"local_field": "remaining_amount"
		},
		{
			"field_name": "row_number",
			"field_number": 2,
			"field_type": "smallint",
			"local_field": "row_number"
		},
		{
			"field_name": "sales_order_id",
			"field_number": 13,
			"field_type": "varchar",
			"foreign_key_not_in_use": [
				{
					"link_type": "",
					"linked_field": "so_sales_order_id",
					"linked_record_type": "",
					"linked_table": "sales_order",
					"linking_record_type": ""
				}
			],
			"length": 20,
			"local_field": "sales_order_id"
		},
		{
			"field_name": "sales_order_row_id",
			"field_number": 28,
			"field_type": "smallint",
			"local_field": "sales_order_row"
		},
		{
			"field_name": "sales_price__unit",
			"field_number": 25,
			"field_type": "double",
			"local_field": "json_data.sales_price__unit"
		},
		{
			"field_name": "serial_number",
			"field_number": 31,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.serial_number"
		},
		{
			"field_name": "start_date",
			"field_number": 5,
			"field_type": "date"
		},
		{
			"field_name": "start_time",
			"field_number": 18,
			"field_type": "time without time zone",
			"local_field": "json_data.start_time"
		},
		{
			"field_name": "start_week",
			"field_number": 4,
			"field_type": "integer"
		},
		{
			"field_name": "started_amount",
			"field_number": 6,
			"field_type": "double",
			"local_field": "started_amount"
		},
		{
			"field_name": "state",
			"field_number": 10,
			"field_type": "varchar",
			"length": 4,
			"local_field": "production_order_state"
		},
		{
			"field_name": "stock_event_id",
			"field_number": 22,
			"field_type": "varchar",
			"length": 0,
			"local_field": "json_data.stock_event"
		},
		{
			"field_name": "track_time_status",
			"field_number": 55,
			"field_type": "integer",
			"local_field": "json_data.track_time_status"
		},
		{
			"field_name": "transfer_id",
			"field_number": 42,
			"field_type": "varchar",
			"length": 120,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_info",
			"field_number": 32,
			"field_type": "varchar",
			"length": 0,
			"local_field": "json_data.transfer_info"
		},
		{
			"field_name": "transfer_state",
			"field_number": 52,
			"field_type": "integer",
			"local_field": "json_data.transfer_state"
		},
		{
			"field_name": "type_",
			"field_number": 21,
			"field_type": "varchar",
			"length": 20,
			"local_field": "json_data.type"
		},
		{
			"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__position_num_id",
			"nullable": true
		},
		{
			"field_name": "work_order_id",
			"field_number": 12,
			"field_type": "varchar",
			"length": 20,
			"local_field": "production_order_id"
		},
		{
			"field_name": "work_order_type",
			"field_number": 54,
			"field_type": "integer",
			"local_field": "json_data.work_order_type"
		}
	],
	"default_field": "table/default_field.json"
}
