{
	"name": "table/manager/product/product_price.json",
	"table_name": "product_price",
	"table_prefix": "prpr",
	"main_table": "product",
	"record_type": ["purchase", "sales"],
	"default_order": [
		{
			"field": "product_id",
			"order": ">"
		}
	],
	"save_script": [],
	"calculated_field": [],
	"field": [
		{
			"field_length": 40,
			"field_name": "company_id",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_record_type": "",
					"linked_table": "company",
					"linking_record_type": ""
				}
			]
		},
		{
			"field_length": 20,
			"field_name": "currency_id",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_record_type": "",
					"linked_table": "currency",
					"linking_record_type": ""
				}
			],
			"not_allowed_value": [""]
		},
		{
			"field_name": "discount_percent"
		},
		{
			"field_name": "end_amount"
		},
		{
			"field_name": "end_date"
		},
		{
			"field_name": "exchange_rate"
		},
		{
			"field_name": "info"
		},
		{
			"field_name": "price"
		},
		{
			"field_length": 40,
			"field_name": "price_group"
		},
		{
			"field_length": 40,
			"field_name": "price_type"
		},
		{
			"field_length": 80,
			"field_name": "product_code"
		},
		{
			"field_length": 80,
			"field_name": "product_id",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_record_type": "",
					"linked_table": "product",
					"linking_record_type": ""
				}
			],
			"not_allowed_value": [""]
		},
		{
			"field_name": "start_amount"
		},
		{
			"field_name": "start_date"
		}
	],
	"extra_field": [
		{
			"field_name": "json_data.discount_target",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.state",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.transfer_id",
			"field_type": "varchar",
			"length": 120
		},
		{
			"field_name": "json_data.order_price__unit",
			"field_type": "double"
		},
		{
			"field_name": "json_data.delivery_time",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.default_price__unit",
			"field_type": "double"
		},
		{
			"field_name": "json_data.purchase_costs",
			"field_type": "double"
		},
		{
			"field_name": "json_data.transfer_state",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.modifier_id",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "json_data.priority",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.type",
			"field_type": "integer"
		},
		{
			"field_name": "json_data.firm_id",
			"field_type": "integer"
		}
	],
	"default_field": "table/default_field.json"
}
