{
	"name": "table/external/4d/product/stock_parcel.json",
	"table_name": "stock_parcel",
	"table_prefix": "stpa",
	"record_type": ["stock_parcel"],
	"local_table": "product_lot",
	"local_record_type": "stock_parcel",
	"table_number": 26,
	"field": [
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 30,
			"constraint": ["index"]
		},
		{
			"field_name": "cost_center",
			"local_field": "json_data.cost_center",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 24
		},
		{
			"field_name": "cost_price__unit",
			"local_field": "json_data.cost_price__unit",
			"field_type": "double",
			"field_number": 9
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 31
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 28
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 23,
			"constraint": ["index"]
		},
		{
			"field_name": "handler_id",
			"local_field": "json_data.handler_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 35,
			"constraint": ["index"]
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 6
		},
		{
			"field_name": "is_own_packet",
			"local_field": "json_data.is_own_packet",
			"field_type": "boolean",
			"field_number": 19,
			"constraint": ["index"]
		},
		{
			"field_name": "is_ready",
			"local_field": "json_data.is_ready",
			"field_type": "boolean",
			"field_number": 18,
			"constraint": ["index"]
		},
		{
			"field_name": "location",
			"local_field": "json_data.location",
			"field_type": "text",
			"field_number": 8
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 32
		},
		{
			"field_name": "order_row",
			"local_field": "json_data.order_row",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 13,
			"constraint": ["index"]
		},
		{
			"field_name": "origin",
			"local_field": "json_data.origin",
			"field_type": "varchar",
			"field_length": 255,
			"field_number": 14
		},
		{
			"field_name": "original_packet_number",
			"local_field": "json_data.original_packet_number",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 17
		},
		{
			"field_name": "original_unit",
			"local_field": "json_data.original_amount",
			"field_type": "double",
			"field_number": 15
		},
		{
			"field_name": "parcel_code",
			"local_field": "serial_number",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 2,
			"constraint": ["index"]
		},
		{
			"field_name": "product_id",
			"local_field": "product_id",
			"field_type": "varchar",
			"field_length": 44,
			"field_number": 1,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"nullable": true
		},
		{
			"field_name": "production_lot",
			"local_field": "json_data.production_order_id",
			"field_type": "varchar",
			"field_length": 35,
			"field_number": 20,
			"constraint": ["index"]
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 29
		},
		{
			"field_name": "purchase_price__unit",
			"local_field": "json_data.purchase_price__unit",
			"field_type": "double",
			"field_number": 4
		},
		{
			"field_name": "record_id",
			"local_field": "product_lot_id",
			"local_field2": ["record_id"],
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 22,
			"constraint": ["unique"]
		},
		{
			"field_name": "sales_price__unit",
			"local_field": "json_data.sales_price__unit",
			"field_type": "double",
			"field_number": 5
		},
		{
			"field_name": "size_",
			"local_field": "json_data.size",
			"field_type": "double",
			"field_number": 11
		},
		{
			"field_name": "state",
			"local_field": "json_data.state",
			"field_type": "integer",
			"field_number": 34,
			"constraint": ["index"]
		},
		{
			"field_name": "stock_balance__unit",
			"local_field": "amount",
			"field_type": "double",
			"field_number": 3,
			"constraint": ["index"]
		},
		{
			"field_name": "stock_balance__unit_2",
			"local_field": "json_data.stock_balance__unit_2",
			"field_type": "double",
			"field_number": 7
		},
		{
			"field_name": "stock_type",
			"local_field": "product_lot_type",
			"field_type": "integer",
			"field_number": 21
		},
		{
			"field_name": "supplier_id",
			"local_field": "json_data.supplier_id",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 16,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "supplier_id",
					"linked_table": "supplier"
				}
			],
			"nullable": true
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 27,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 33
		},
		{
			"field_name": "type_",
			"local_field": "json_data.storage_type",
			"field_type": "varchar",
			"field_length": 30,
			"field_number": 10,
			"constraint": ["index"]
		},
		{
			"field_name": "unit",
			"local_field": "json_data.unit",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 25
		},
		{
			"field_name": "unit_2",
			"local_field": "json_data.unit_2",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 26
		},
		{
			"field_name": "units",
			"local_field": "json_data.units",
			"field_type": "double",
			"field_number": 12
		}
	]
}
