mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 05:17:27 +01:00
- paykit ^0.4.0 -> ^0.5.0 (the local Stripe copy was already gone); Stripe stays off - HEIDI_SALES_ENABLED master switch, default off: not-on-sale state, checkout 503, no invoice; an invoice made while on still settles - usage caps per person in Postgres: shared chat+speaking daily count, pass-period server voice seconds and dictation clips, free daily dictation (migration 0031_usage_meter, additive) - separate pass model route by env (HEIDI_PASS_GROQ_API_KEY/_MODELS), default = free chain - one primary button on /pass; pass copy no longer promises triple allowance - docs/payments.md, .env.example, owner checklist updated Co-authored-by: Claude <noreply@anthropic.com>
9 lines
298 B
SQL
9 lines
298 B
SQL
CREATE TABLE "usage_meter" (
|
|
"actor_id" text NOT NULL,
|
|
"kind" text NOT NULL,
|
|
"period" text NOT NULL,
|
|
"amount" integer DEFAULT 0 NOT NULL,
|
|
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
CONSTRAINT "usage_meter_actor_id_kind_period_pk" PRIMARY KEY("actor_id","kind","period")
|
|
);
|