CREATE TABLE "orderScheduler" (
	"schedule_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"order_type" text NOT NULL,
	"order_number" integer NOT NULL,
	"header" text NOT NULL,
	"line_item_number" text,
	"customer_release_number" text,
	"delivery_date" date NOT NULL,
	"loading_date" date,
	"order_qty" real NOT NULL,
	"order_lu" real NOT NULL,
	"delivered_qty" real DEFAULT 0,
	"delivered_lu" real DEFAULT 0,
	"remark" text,
	"current_state" integer,
	"lst_date_check" date,
	"dock" text,
	"order_from" text
);
--> statement-breakpoint
CREATE UNIQUE INDEX "orderNumber" ON "orderScheduler" USING btree ("order_number");