CREATE TABLE `textile_quote_requests` (
	`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
	`reference` text NOT NULL,
	`name` text NOT NULL,
	`email` text NOT NULL,
	`phone` text,
	`company` text,
	`profile_code` text NOT NULL,
	`width_cm` integer NOT NULL,
	`height_cm` integer NOT NULL,
	`quantity` integer DEFAULT 1 NOT NULL,
	`finish` text NOT NULL,
	`installation` text NOT NULL,
	`estimated_price_cents` integer NOT NULL,
	`is_professional` integer DEFAULT false NOT NULL,
	`status` text DEFAULT 'new' NOT NULL,
	`created_at` integer NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `textile_quote_requests_reference_unique` ON `textile_quote_requests` (`reference`);