{
	"table_name": "stock_event",
	"record_type_local": "",
	"table_prefix": "st",
	"field": [
		{
			"field_number": 8,
			"constraint": [
				"index"
			],
			"name": "amount__unit",
			"type": "double"
		},
		{
			"name": "average_balance",
			"field_number": 18,
			"type": "double"
		},
		{
			"name": "average_price",
			"field_number": 19,
			"type": "double"
		},
		{
			"name": "average_price_change_date",
			"field_number": 32,
			"type": "date"
		},
		{
			"length": 45,
			"field_number": 43,
			"constraint": [
				"index"
			],
			"name": "change_id",
			"type": "varchar"
		},
		{
			"length": 12,
			"foreign_key": {
				"field": "company_id",
				"table": "company"
			},
			"field_number": 2,
			"constraint": [
				"index"
			],
			"name": "company_id",
			"nullable": true,
			"type": "varchar"
		},
		{
			"length": 80,
			"field_number": 29,
			"name": "cost_center",
			"type": "varchar"
		},
		{
			"name": "cost_price__unit",
			"field_number": 20,
			"type": "double"
		},
		{
			"length": 20,
			"field_number": 44,
			"name": "creator_id",
			"type": "varchar"
		},
		{
			"length": 6,
			"foreign_key": {
				"field": "currency_id",
				"table": "currency"
			},
			"field_number": 23,
			"constraint": [
				"index"
			],
			"name": "currency_id",
			"nullable": true,
			"type": "varchar"
		},
		{
			"length": 40,
			"field_number": 41,
			"name": "customer_project",
			"type": "varchar"
		},
		{
			"field_number": 5,
			"constraint": [
				"index"
			],
			"name": "date_",
			"type": "date"
		},
		{
			"length": 12,
			"foreign_key": {
				"field": "employee_id",
				"table": "employee"
			},
			"field_number": 7,
			"constraint": [
				"index"
			],
			"name": "event_maker_id",
			"nullable": true,
			"type": "varchar"
		},
		{
			"name": "exchange_rate",
			"field_number": 25,
			"type": "double"
		},
		{
			"field_number": 27,
			"constraint": [
				"index"
			],
			"name": "firm_id",
			"type": "integer"
		},
		{
			"name": "foreign_price_change_date",
			"field_number": 30,
			"type": "date"
		},
		{
			"name": "foreign_purchase_price",
			"field_number": 22,
			"type": "double"
		},
		{
			"name": "info",
			"type": "text",
			"field_number": 12
		},
		{
			"length": 35,
			"field_number": 21,
			"constraint": [
				"index"
			],
			"name": "manufacturing_lot",
			"type": "varchar"
		},
		{
			"length": 20,
			"field_number": 45,
			"name": "modifier_id",
			"type": "varchar"
		},
		{
			"length": 30,
			"field_number": 24,
			"constraint": [
				"index"
			],
			"name": "order_row",
			"type": "varchar"
		},
		{
			"length": 12,
			"field_number": 17,
			"name": "orderer_id",
			"type": "varchar"
		},
		{
			"field_number": 26,
			"constraint": [
				"index"
			],
			"name": "price_confirmation",
			"type": "integer"
		},
		{
			"length": 44,
			"foreign_key": {
				"field": "product_id",
				"table": "product"
			},
			"field_number": 1,
			"constraint": [
				"index"
			],
			"name": "product_id",
			"nullable": true,
			"type": "varchar"
		},
		{
			"length": 40,
			"field_number": 42,
			"name": "project_id",
			"type": "varchar"
		},
		{
			"name": "purch_avg_price_amount",
			"field_number": 34,
			"type": "double"
		},
		{
			"name": "purch_avg_price_change_date",
			"field_number": 35,
			"type": "date"
		},
		{
			"name": "purchase_average_price",
			"field_number": 33,
			"type": "double"
		},
		{
			"name": "purchase_costs",
			"field_number": 36,
			"type": "double"
		},
		{
			"name": "purchase_price__unit",
			"field_number": 13,
			"type": "double"
		},
		{
			"name": "purchase_price_change_date",
			"field_number": 31,
			"type": "date"
		},
		{
			"name": "purchase_price_total",
			"field_number": 10,
			"type": "double"
		},
		{
			"length": 45,
			"field_number": 28,
			"constraint": [
				"unique"
			],
			"name": "record_id",
			"type": "varchar"
		},
		{
			"name": "sales_price__unit",
			"field_number": 15,
			"type": "double"
		},
		{
			"name": "sales_price_total",
			"field_number": 14,
			"type": "double"
		},
		{
			"field_number": 47,
			"constraint": [
				"index"
			],
			"name": "state",
			"type": "integer"
		},
		{
			"name": "stock_balance",
			"field_number": 16,
			"type": "double"
		},
		{
			"field_number": 37,
			"constraint": [
				"index"
			],
			"name": "stock_balance_wip",
			"type": "double"
		},
		{
			"length": 10,
			"field_number": 11,
			"constraint": [
				"unique"
			],
			"name": "stock_event_id",
			"type": "varchar"
		},
		{
			"length": 30,
			"field_number": 9,
			"constraint": [
				"index"
			],
			"name": "storage_place",
			"type": "varchar"
		},
		{
			"length": 12,
			"foreign_key": {
				"field": "supplier_id",
				"table": "supplier"
			},
			"field_number": 3,
			"constraint": [
				"index"
			],
			"name": "supplier_id",
			"nullable": true,
			"type": "varchar"
		},
		{
			"name": "time_",
			"field_number": 6,
			"type": "time"
		},
		{
			"length": 60,
			"field_number": 40,
			"constraint": [
				"index"
			],
			"name": "transfer_id",
			"type": "varchar"
		},
		{
			"name": "transfer_state",
			"field_number": 46,
			"type": "integer"
		},
		{
			"length": 20,
			"field_number": 4,
			"constraint": [
				"index"
			],
			"name": "type_",
			"type": "varchar"
		},
		{
			"length": 10,
			"field_number": 38,
			"name": "unit",
			"type": "varchar"
		},
		{
			"length": 10,
			"field_number": 39,
			"name": "unit_2",
			"type": "varchar"
		}
	],
	"table_number": 8,
	"table_name_local": "stock",
	"name": "table/external/4d/manager/product/stock_event.json"
}