CREATE TABLE IF NOT EXISTS "bal_accounts" (
	"id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "accountsid_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
	"first_name" varchar(40),
	"createdon" timestamp
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "lipseycatalog" (
	"id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "lipseycatalog_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
	"itemno" varchar(20) NOT NULL,
	"description1" text,
	"description2" text,
	"upc" varchar(20),
	"manufacturermodelno" varchar(30),
	"msrp" double precision,
	"model" text,
	"calibergauge" text,
	"manufacturer" text,
	"type" text,
	"action" text,
	"barrellength" text,
	"capacity" text,
	"finish" text,
	"overalllength" text,
	"receiver" text,
	"safety" text,
	"sights" text,
	"stockframegrips" text,
	"magazine" text,
	"weight" text,
	"imagename" text,
	"chamber" text,
	"drilledandtapped" text,
	"rateoftwist" text,
	"itemtype" text,
	"additionalfeature1" text,
	"additionalfeature2" text,
	"additionalfeature3" text,
	"shippingweight" text,
	"boundbookmanufacturer" text,
	"boundbookmodel" text,
	"boundbooktype" text,
	"nfathreadpattern" text,
	"nfaattachmentmethod" text,
	"nfabaffletype" text,
	"silencercanbedisassembled" text,
	"silencerconstructionmaterial" text,
	"nfadbreduction" text,
	"silenceroutsidediameter" text,
	"nfaform3Caliber" text,
	"opticmagnification" text,
	"maintubesize" text,
	"adjustableobjective" text,
	"objectivesize" text,
	"opticadjustments" text,
	"illuminatedreticle" text,
	"reticle" text,
	"exclusive" text,
	"quantity" varchar(10) DEFAULT NULL,
	"allocated" text,
	"onsale" text,
	"price" double precision,
	"currentprice" double precision,
	"retailmap" double precision,
	"fflrequired" text,
	"sotrequired" text,
	"exclusivetype" text,
	"scopecoverincluded" text,
	"special" text,
	"sightstype" text,
	"case" text,
	"choke" text,
	"dbreduction" text,
	"family" text,
	"finishtype" text,
	"frame" text,
	"griptype" varchar(30),
	"handgunslidematerial" text,
	"countryoforigin" varchar(4),
	"itemlength" text,
	"itemwidth" text,
	"itemheight" text,
	"packagelength" double precision,
	"packagewidth" double precision,
	"packageheight" double precision,
	"itemgroup" varchar(40),
	"createdon" timestamp
);
