{
	"name": "table/external/4d/manager/product/stock_event.json",
	"table_name": "stock_event",
	"table_prefix": "st",
	"record_type": [""],
	"local_table": "stock",
	"local_record_type": "",
	"table_number": 8,
	"field": [
		{
			"field_name": "amount__unit",
			"field_number": 8,
			"field_type": "double",
			"local_field": "json_data.amount__unit"
		},
		{
			"field_name": "average_balance",
			"field_number": 18,
			"field_type": "double",
			"local_field": "json_data.average_balance"
		},
		{
			"field_name": "average_price",
			"field_number": 19,
			"field_type": "double",
			"local_field": "json_data.average_price"
		},
		{
			"field_name": "average_price_change_date",
			"field_number": 32,
			"field_type": "date",
			"local_field": "json_data.average_price_change_date"
		},
		{
			"field_name": "change_id",
			"field_number": 43,
			"field_type": "varchar",
			"length": 90,
			"local_field": "modify_id"
		},
		{
			"field_name": "company_id",
			"field_number": 2,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"length": 24,
			"local_field": "json_data.company_id",
			"nullable": true
		},
		{
			"field_name": "cost_center",
			"field_number": 29,
			"field_type": "varchar",
			"length": 160,
			"local_field": "json_data.cost_center"
		},
		{
			"field_name": "cost_price__unit",
			"field_number": 20,
			"field_type": "double",
			"local_field": "json_data.cost_price__unit"
		},
		{
			"field_name": "creator_id",
			"field_number": 44,
			"field_type": "varchar",
			"length": 40,
			"local_field": "create_user"
		},
		{
			"field_name": "currency_id",
			"field_number": 23,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"length": 12,
			"local_field": "currency_id",
			"nullable": true
		},
		{
			"field_name": "customer_project",
			"field_number": 41,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "date_",
			"field_number": 5,
			"field_type": "date",
			"local_field": "json_data.date"
		},
		{
			"field_name": "event_maker_id",
			"field_number": 7,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "employee_id",
					"linked_table": "employee"
				}
			],
			"length": 24,
			"local_field": "json_data.event_maker_id",
			"nullable": true
		},
		{
			"field_name": "exchange_rate",
			"field_number": 25,
			"field_type": "double",
			"local_field": "json_data.exchange_rate"
		},
		{
			"field_name": "firm_id",
			"field_number": 27,
			"field_type": "integer",
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "foreign_price_change_date",
			"field_number": 30,
			"field_type": "date",
			"local_field": "json_data.foreign_price_change_date"
		},
		{
			"field_name": "foreign_purchase_price",
			"field_number": 22,
			"field_type": "double",
			"local_field": "json_data.foreign_purchase_price"
		},
		{
			"field_name": "info",
			"field_number": 12,
			"field_type": "varchar",
			"length": 0,
			"local_field": "info"
		},
		{
			"field_name": "manufacturing_lot",
			"field_number": 21,
			"field_type": "varchar",
			"length": 70,
			"local_field": "json_data.manufacturing_lot"
		},
		{
			"field_name": "modifier_id",
			"field_number": 45,
			"field_type": "varchar",
			"length": 40,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "order_row",
			"field_number": 24,
			"field_type": "varchar",
			"length": 60,
			"local_field": "json_data.order_row"
		},
		{
			"field_name": "orderer_id",
			"field_number": 17,
			"field_type": "varchar",
			"length": 24,
			"local_field": "json_data.orderer_id"
		},
		{
			"field_name": "price_confirmation",
			"field_number": 26,
			"field_type": "integer",
			"local_field": "json_data.price_confirmation"
		},
		{
			"field_name": "product_id",
			"field_number": 1,
			"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": "project_id",
			"field_number": 42,
			"field_type": "varchar",
			"length": 80,
			"local_field": "json_data.project_id"
		},
		{
			"field_name": "purch_avg_price_amount",
			"field_number": 34,
			"field_type": "double",
			"local_field": "json_data.purch_avg_price_amount"
		},
		{
			"field_name": "purch_avg_price_change_date",
			"field_number": 35,
			"field_type": "date",
			"local_field": "json_data.purch_avg_price_change_date"
		},
		{
			"field_name": "purchase_average_price",
			"field_number": 33,
			"field_type": "double",
			"local_field": "json_data.purchase_average_price"
		},
		{
			"field_name": "purchase_costs",
			"field_number": 36,
			"field_type": "double",
			"local_field": "json_data.purchase_costs"
		},
		{
			"field_name": "purchase_price__unit",
			"field_number": 13,
			"field_type": "double",
			"local_field": "json_data.purchase_price__unit"
		},
		{
			"field_name": "purchase_price_change_date",
			"field_number": 31,
			"field_type": "date",
			"local_field": "json_data.purchase_price_change_date"
		},
		{
			"field_name": "purchase_price_total",
			"field_number": 10,
			"field_type": "double",
			"local_field": "json_data.purchase_price_total"
		},
		{
			"constraint": ["unique"],
			"field_name": "record_id",
			"field_number": 28,
			"field_type": "varchar",
			"length": 90,
			"local_field": "record_id"
		},
		{
			"field_name": "sales_price__unit",
			"field_number": 15,
			"field_type": "double",
			"local_field": "json_data.sales_price__unit"
		},
		{
			"field_name": "sales_price_total",
			"field_number": 14,
			"field_type": "double",
			"local_field": "json_data.sales_price_total"
		},
		{
			"field_name": "state",
			"field_number": 47,
			"field_type": "integer",
			"local_field": "json_data.state"
		},
		{
			"field_name": "stock_balance",
			"field_number": 16,
			"field_type": "double",
			"local_field": "stock_balance"
		},
		{
			"field_name": "stock_balance_wip",
			"field_number": 37,
			"field_type": "double",
			"local_field": "json_data.stock_balance_wip"
		},
		{
			"constraint": ["unique"],
			"field_name": "stock_event_id",
			"field_number": 11,
			"field_type": "varchar",
			"length": 20,
			"local_field": "stock_id"
		},
		{
			"field_name": "storage_place",
			"field_number": 9,
			"field_type": "varchar",
			"length": 60,
			"local_field": "json_data.storage_place"
		},
		{
			"field_name": "supplier_id",
			"field_number": 3,
			"field_type": "varchar",
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "supplier_id",
					"linked_table": "supplier"
				}
			],
			"length": 24,
			"local_field": "json_data.supplier_id",
			"nullable": true
		},
		{
			"field_name": "time_",
			"field_number": 6,
			"field_type": "time without time zone",
			"local_field": "json_data.time"
		},
		{
			"field_name": "transfer_id",
			"field_number": 40,
			"field_type": "varchar",
			"length": 120,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 46,
			"field_type": "integer",
			"local_field": "json_data.transfer_state"
		},
		{
			"field_name": "type_",
			"field_number": 4,
			"field_type": "varchar",
			"length": 40,
			"local_field": "stock_type"
		},
		{
			"field_name": "unit",
			"field_number": 38,
			"field_type": "varchar",
			"length": 20,
			"local_field": "json_data.unit"
		},
		{
			"field_name": "unit_2",
			"field_number": 39,
			"field_type": "varchar",
			"length": 20,
			"local_field": "json_data.unit_2"
		}
	],
	"default_field": "table/default_field.json"
}
