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