{
	"name": "table/not_in_use/manager/terms_of_payment.json",
	"table_name": "terms_of_payment",
	"table_prefix": "top",
	"calculated_field": [],
	"field": [
		{
			"field_name": "discount_days",
			"field_number": 4,
			"field_type": "integer"
		},
		{
			"field_name": "discount_percent",
			"field_number": 3,
			"field_type": "double"
		},
		{
			"field_name": "field",
			"field_number": 2,
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "info",
			"field_number": 6,
			"field_type": "text"
		},
		{
			"field_name": "net_days",
			"field_number": 5,
			"field_type": "integer"
		},
		{
			"constraint": ["primary key", "unique"],
			"field_name": "terms_of_payment_id",
			"field_number": 1,
			"field_type": "varchar",
			"length": 40
		}
	],
	"constraint": {
		"save": {
			"allow": [
				{
					"code": [["top_terms_of_payment_id", "<>", ""]],
					"field_number": "top_terms_of_payment_id",
					"message": "Field '%s' may not be empty"
				},
				{
					"code": [["top_name", "<>", ""]],
					"field_number": "top_name",
					"message": "Field '%s' may not be empty"
				}
			]
		}
	},
	"default_field": "table/default_field.json"
}
