{
	"name": "table/external/4d/product/product_supplier.json",
	"table_name": "product_supplier",
	"table_prefix": "prsu",
	"main_table": "product",
	"record_type": ["purchase"],
	"local_table": "product_price",
	"local_record_type": "purchase",
	"table_number": 35,
	"field": [
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 18
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.supplier.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 19
		},
		{
			"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",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 16
		},
		{
			"field_name": "delivery_time",
			"local_field": "json_data.supplier.delivery_time",
			"field_type": "integer",
			"field_number": 12
		},
		{
			"field_name": "discount_percentage",
			"local_field": "discount_percent",
			"field_type": "double",
			"field_number": 6,
			"constraint": ["index"]
		},
		{
			"field_name": "exchange_rate",
			"local_field": "exchange_rate",
			"field_type": "double",
			"field_number": 4
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.supplier.firm_id",
			"field_type": "integer",
			"field_number": 11,
			"constraint": ["index"]
		},
		{
			"field_name": "foreign_ord_price__unit",
			"local_field": "price",
			"field_type": "double",
			"field_number": 3
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 9
		},
		{
			"field_name": "modifier_id",
			"local_field": "json_data.supplier.modifier_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 20
		},
		{
			"field_name": "order_price__unit",
			"local_field": "json_data.supplier.order_price__unit",
			"field_type": "double",
			"field_number": 5
		},
		{
			"field_name": "priority",
			"local_field": "json_data.supplier.priority",
			"field_type": "integer",
			"field_number": 13,
			"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": "project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 17
		},
		{
			"field_name": "purchase_costs",
			"local_field": "json_data.supplier.purchase_costs",
			"field_type": "double",
			"field_number": 14
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 10,
			"constraint": ["unique"]
		},
		{
			"field_name": "supplier_id",
			"local_field": "company_id",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 7,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "supplier_id",
					"linked_table": "supplier"
				}
			],
			"nullable": true
		},
		{
			"field_name": "suppliers_material_code",
			"local_field": "product_code",
			"field_type": "varchar",
			"field_length": 50,
			"field_number": 8
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.supplier.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 15,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.supplier.transfer_state",
			"field_type": "integer",
			"field_number": 21
		}
	]
}
