CREATE TABLE "repair_service_template" (
  "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
  "company_id" uuid NOT NULL REFERENCES "company"("id"),
  "name" varchar(255) NOT NULL,
  "instrument_type" varchar(100),
  "size" varchar(50),
  "description" text,
  "item_type" "repair_line_item_type" NOT NULL DEFAULT 'flat_rate',
  "default_price" numeric(10, 2) NOT NULL DEFAULT 0,
  "default_cost" numeric(10, 2),
  "sort_order" integer NOT NULL DEFAULT 0,
  "is_active" boolean NOT NULL DEFAULT true,
  "created_at" timestamp with time zone NOT NULL DEFAULT now(),
  "updated_at" timestamp with time zone NOT NULL DEFAULT now()
);
