CREATE TABLE "inv_historical_data" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"hist_date" date NOT NULL,
	"plant_token" text,
	"article" text NOT NULL,
	"article_description" text NOT NULL,
	"material_type" text,
	"total_QTY" text,
	"available_QTY" text,
	"coa_QTY" text,
	"held_QTY" text,
	"consignment_qty" text,
	"lot_number" text,
	"location_id" text,
	"location" text,
	"whse_id" text DEFAULT '',
	"whse_name" text DEFAULT 'missing whseName',
	"upd_user" text DEFAULT 'lst',
	"upd_date" timestamp DEFAULT now()
);
