{
	"name": "table/external/4d/product/product_price.json",
	"table_name": "product_price",
	"table_prefix": "prpr",
	"main_table": "product",
	"record_type": ["sales"],
	"local_table": "product_price",
	"local_record_type": "sales",
	"table_number": 25,
	"field": [
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 17
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 18
		},
		{
			"field_name": "currency_id",
			"local_field": "currency_id",
			"field_type": "varchar",
			"field_length": 6,
			"field_number": 2,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"nullable": true
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 15
		},
		{
			"field_name": "default_price__unit",
			"local_field": "json_data.default_price__unit",
			"field_type": "double",
			"field_number": 7
		},
		{
			"field_name": "discount_percentage",
			"local_field": "discount_percent",
			"field_type": "double",
			"field_number": 13
		},
		{
			"field_name": "discount_target",
			"local_field": "json_data.discount_target",
			"field_type": "integer",
			"field_number": 23
		},
		{
			"field_name": "end_date",
			"local_field": "end_date",
			"field_type": "date",
			"field_number": 12
		},
		{
			"field_name": "end_unit",
			"local_field": "end_amount",
			"field_type": "double",
			"field_number": 5
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 10,
			"constraint": ["index"]
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 8
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 19
		},
		{
			"field_name": "price_group",
			"local_field": "price_group",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 6
		},
		{
			"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": "project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 16
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 9,
			"constraint": ["unique"]
		},
		{
			"field_name": "sales_price__unit",
			"local_field": "price",
			"field_type": "double",
			"field_number": 3
		},
		{
			"field_name": "start_date",
			"local_field": "start_date",
			"field_type": "date",
			"field_number": 11
		},
		{
			"field_name": "start_unit",
			"local_field": "start_amount",
			"field_type": "double",
			"field_number": 4
		},
		{
			"field_name": "state",
			"local_field": "json_data.state",
			"field_type": "integer",
			"field_number": 22,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 14,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 20
		},
		{
			"field_name": "type_",
			"local_field": "json_data.type",
			"field_type": "integer",
			"field_number": 21
		}
	]
}
