CREATE TABLE "server_data" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"name" text NOT NULL,
	"server" text,
	"plant_token" text,
	"id_address" text,
	"great_plains_plantCode" numeric,
	"contact_email" text,
	"contact_phone" text,
	"active" boolean DEFAULT true,
	"server_loc" text,
	"last_updated" timestamp DEFAULT now(),
	"build_number" integer,
	"is_upgrading" boolean DEFAULT false
);
--> statement-breakpoint
CREATE UNIQUE INDEX "plant_token" ON "server_data" USING btree ("plant_token");