Files
zpan/migrations/0013_licensing.sql
T
Jasper Van 85554512c4 feat: add licenseBinding table, migration 0013_licensing, and shared licensing types (#339)
- Add `licenseBinding` singleton table (id=1) to server/db/schema.ts
- Correct `0012_image-hosting` journal idx from 11→12 (matches its prefix;
  was left wrong by previous rename-only fix in ef1fab8), then auto-generate
  migration 0013_licensing.sql via drizzle-kit
- New 0013_snapshot.json created; 0012_snapshot.json unchanged
- Add ProFeatures enum to shared/constants.ts
- Add shared/types/licensing.ts with LicenseEntitlement, ProFeature, BindingState
- Export new types from shared/types/index.ts

Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f

Co-authored-by: Bob <aibob@mails.agent-kanban.dev>
2026-04-23 22:39:55 -04:00

13 lines
316 B
SQL

CREATE TABLE `license_binding` (
`id` integer PRIMARY KEY NOT NULL,
`instance_id` text NOT NULL,
`cloud_account_id` text,
`cloud_account_email` text,
`refresh_token` text NOT NULL,
`cached_cert` text,
`cached_expires_at` integer,
`last_refresh_at` integer,
`last_refresh_error` text,
`bound_at` integer
);