{
	"name": "table/external/4d/manager/product/work.json",
	"table_name": "work",
	"table_prefix": "w",
	"record_type": ["work"],
	"local_table": "product",
	"local_record_type": "work",
	"table_number": 43,
	"field": [
		{
			"field_name": "act_mat_sales_price__total",
			"field_number": 35,
			"field_type": "double"
		},
		{
			"field_name": "act_material_cost__total",
			"field_number": 24,
			"field_type": "double"
		},
		{
			"field_name": "act_salary__total",
			"field_number": 27,
			"field_type": "double"
		},
		{
			"field_name": "act_setup_time__total",
			"field_number": 25,
			"field_type": "double"
		},
		{
			"field_name": "act_subc_cost__total",
			"field_number": 29,
			"field_type": "double"
		},
		{
			"field_name": "act_subc_sales_price__total",
			"field_number": 37,
			"field_type": "double"
		},
		{
			"field_name": "act_work_cost__total",
			"field_number": 28,
			"field_type": "double"
		},
		{
			"field_name": "act_work_sales_price__total",
			"field_number": 36,
			"field_type": "double"
		},
		{
			"field_name": "act_work_time__total",
			"field_number": 26,
			"field_type": "double"
		},
		{
			"field_name": "calculation_lot",
			"field_number": 10,
			"field_type": "double",
			"local_field": "json_data.calculation_lot"
		},
		{
			"field_name": "change_id",
			"field_number": 52,
			"field_type": "varchar",
			"length": 90,
			"local_field": "modify_id"
		},
		{
			"field_name": "company_id",
			"field_number": 34,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"length": 24,
			"local_field": "default_customer_id",
			"nullable": true
		},
		{
			"field_name": "conf_mat_sales_price__unit",
			"field_number": 30,
			"field_type": "double"
		},
		{
			"field_name": "conf_subc_sales_price__unit",
			"field_number": 32,
			"field_type": "double"
		},
		{
			"field_name": "conf_work_sales_price__unit",
			"field_number": 31,
			"field_type": "double"
		},
		{
			"field_name": "creation_date",
			"field_number": 6,
			"field_type": "date",
			"local_field": "json_data.creation_date"
		},
		{
			"field_name": "creator_id",
			"field_number": 53,
			"field_type": "varchar",
			"length": 40,
			"local_field": "create_user"
		},
		{
			"field_name": "customer_project",
			"field_number": 50,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "delivered_amount",
			"field_number": 40,
			"field_type": "double"
		},
		{
			"field_name": "deliveries",
			"field_number": 41,
			"field_type": "smallint"
		},
		{
			"field_name": "drawing_number",
			"field_number": 42,
			"field_type": "varchar",
			"length": 80,
			"local_field": "drawing_number"
		},
		{
			"field_name": "est_mat_sales_price__unit",
			"field_number": 16,
			"field_type": "double",
			"local_field": "material_sales_price"
		},
		{
			"field_name": "est_material_cost__unit",
			"field_number": 15,
			"field_type": "double",
			"local_field": "material_cost_price"
		},
		{
			"field_name": "est_salary__unit",
			"field_number": 19,
			"field_type": "double",
			"local_field": "json_data.salary_price"
		},
		{
			"field_name": "est_setup_time__unit",
			"field_number": 17,
			"field_type": "double",
			"local_field": "setup_time"
		},
		{
			"field_name": "est_subc_cost__unit",
			"field_number": 22,
			"field_type": "double",
			"local_field": "subcontract_cost_price"
		},
		{
			"field_name": "est_subc_sales_price__unit",
			"field_number": 23,
			"field_type": "double",
			"local_field": "subcontract_sales_price"
		},
		{
			"field_name": "est_work_cost__unit",
			"field_number": 20,
			"field_type": "double",
			"local_field": "work_cost_price"
		},
		{
			"field_name": "est_work_sales_price__unit",
			"field_number": 21,
			"field_type": "double",
			"local_field": "work_sales_price"
		},
		{
			"field_name": "est_work_time__unit",
			"field_number": 18,
			"field_type": "double",
			"local_field": "work_time"
		},
		{
			"field_name": "firm_id",
			"field_number": 46,
			"field_type": "integer",
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "info",
			"field_number": 9,
			"field_type": "varchar",
			"length": 0,
			"local_field": "info"
		},
		{
			"field_name": "level",
			"field_number": 4,
			"field_type": "smallint"
		},
		{
			"field_name": "modification_date",
			"field_number": 7,
			"field_type": "date"
		},
		{
			"field_name": "modifier_id",
			"field_number": 8,
			"field_type": "varchar",
			"length": 24,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "name",
			"field_number": 5,
			"field_type": "varchar",
			"length": 130,
			"local_field": "name"
		},
		{
			"field_name": "part__main_level",
			"field_number": 45,
			"field_type": "integer"
		},
		{
			"field_name": "part__upper_level",
			"field_number": 11,
			"field_type": "integer"
		},
		{
			"field_name": "position_",
			"field_number": 33,
			"field_type": "varchar",
			"length": 10
		},
		{
			"field_name": "produced_amount",
			"field_number": 14,
			"field_type": "double"
		},
		{
			"field_name": "product_id",
			"field_number": 47,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"length": 88,
			"local_field": "product_id",
			"nullable": true
		},
		{
			"field_name": "production_amount",
			"field_number": 38,
			"field_type": "smallint"
		},
		{
			"field_name": "project_id",
			"field_number": 51,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.project_id"
		},
		{
			"constraint": ["unique"],
			"field_name": "record_id",
			"field_number": 48,
			"field_type": "varchar",
			"length": 90,
			"local_field": "record_id"
		},
		{
			"field_name": "remaining_amount",
			"field_number": 13,
			"field_type": "double"
		},
		{
			"field_name": "sales_price_locked",
			"field_number": 12,
			"field_type": "boolean",
			"local_field": "json_data.sales_price_locked"
		},
		{
			"field_name": "social_cost_multiplier",
			"field_number": 43,
			"field_type": "double"
		},
		{
			"field_name": "state",
			"field_number": 3,
			"field_type": "varchar",
			"length": 4,
			"local_field": "json_data.state"
		},
		{
			"field_name": "transfer_id",
			"field_number": 49,
			"field_type": "varchar",
			"length": 120,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 54,
			"field_type": "integer",
			"local_field": "json_data.transfer_state"
		},
		{
			"field_name": "vat_percentage",
			"field_number": 44,
			"field_type": "double"
		},
		{
			"field_name": "waiting_for_delivery",
			"field_number": 39,
			"field_type": "double"
		},
		{
			"constraint": ["unique"],
			"field_name": "work__position_num_id",
			"field_number": 2,
			"field_type": "varchar",
			"length": 60,
			"local_field": "work_number"
		},
		{
			"field_name": "work_id",
			"field_number": 1,
			"field_type": "varchar",
			"length": 40
		}
	],
	"default_field": "table/default_field.json"
}
