Lead Radar: исходный код

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuriandClaude Opus 5.5 committed 2026-10-25 23:11:04 +04:00
commit 9749da5ae7
201 files changed
+97685

No files matched your search

@@ -0,0 +1,8 @@
ALTER TABLE "admin_messages" ADD COLUMN "unreachable" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE "companies" ADD COLUMN "percent_from" date;--> statement-breakpoint
ALTER TABLE "companies" ADD COLUMN "billing_notice" text;--> statement-breakpoint
ALTER TABLE "sessions" ADD COLUMN "via_telegram" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "users" ADD COLUMN "onboarded_at" timestamp with time zone;--> statement-breakpoint
-- Уже работающим пользователям мастер настройки не показывается.
UPDATE "users" SET "onboarded_at" = "created_at" WHERE "company_id" IS NOT NULL;--> statement-breakpoint
UPDATE "companies" SET "percent_from" = ("created_at" AT TIME ZONE 'Asia/Yerevan')::date WHERE "billing_model" = 'percent';