UPDATE "public"."plans" SET "is_minimum" = 'true' WHERE "id" = 10;
ALTER TABLE "public"."devices" 
  ADD COLUMN "recharges_deleted_id" uuid DEFAULT NULL,
  ADD CONSTRAINT "devices_recharge_delected" FOREIGN KEY ("recharges_deleted_id") REFERENCES "public"."recharges" ("id") ON DELETE SET NULL ON UPDATE CASCADE;
ALTER TABLE "public"."devices" 
  ADD COLUMN "recharges_minimum_id" uuid DEFAULT NULL,
  ADD CONSTRAINT "devices_recharge_minimum" FOREIGN KEY ("recharges_minimum_id") REFERENCES "public"."recharges" ("id") ON DELETE SET NULL ON UPDATE CASCADE;
ALTER TABLE "public"."devices" 
  ADD COLUMN "recharges_minimum_left_id" uuid DEFAULT NULL,
  ADD CONSTRAINT "devices_recharge_minimum_left" FOREIGN KEY ("recharges_minimum_left_id") REFERENCES "public"."recharges" ("id") ON DELETE SET NULL ON UPDATE CASCADE;
ALTER TABLE "public"."devices" 
  ADD COLUMN "recharges_minimum_right_id" uuid DEFAULT NULL,
  ADD CONSTRAINT "devices_recharge_minimum_right" FOREIGN KEY ("recharges_minimum_right_id") REFERENCES "public"."recharges" ("id") ON DELETE SET NULL ON UPDATE CASCADE;