{
	"table_prefix": "top",
	"field": [
		{
			"type": "varchar",
			"length": 40,
			"name": "terms_of_payment_id",
			"constraint": [
				"primary key",
				"unique"
			]
		},
		{
			"type": "varchar",
			"length": 80,
			"name": "name"
		},
		{
			"name": "discount_percent",
			"type": "double"
		},
		{
			"name": "discount_days",
			"type": "integer"
		},
		{
			"name": "net_days",
			"type": "integer"
		},
		{
			"name": "info",
			"type": "text"
		},
		{
			"name": "json_data",
			"type": "jsonb"
		}
	],
	"extra_field": [
		{
			"type": "varchar",
			"length": 12,
			"name": "json_data.ar_code"
		},
		{
			"type": "varchar",
			"length": 80,
			"name": "json_data.customer_project"
		},
		{
			"type": "double",
			"name": "json_data.discount_percentage"
		},
		{
			"type": "varchar",
			"length": 24,
			"name": "json_data.export_code"
		},
		{
			"type": "boolean",
			"name": "json_data.no_due_date"
		},
		{
			"type": "varchar",
			"length": 80,
			"name": "json_data.project_id"
		},
		{
			"type": "integer",
			"name": "json_data.target_date_difference"
		},
		{
			"type": "varchar",
			"length": 120,
			"name": "json_data.transfer_id"
		},
		{
			"type": "integer",
			"name": "json_data.transfer_state"
		}
	],
	"calculated_field": [],
	"constraint": {
		"save": {
			"allow": [
				{
					"field": "top_terms_of_payment_id",
					"message": "Field '%s' may not be empty",
					"code": [
						[
							"top_terms_of_payment_id",
							"<>",
							""
						]
					]
				},
				{
					"field": "top_name",
					"message": "Field '%s' may not be empty",
					"code": [
						[
							"top_name",
							"<>",
							""
						]
					]
				}
			]
		}
	},
	"name": "table/manager/order/terms_of_payment.json",
	"table_name": "terms_of_payment"
}