mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-30 17:50:07 +08:00
85554512c4
- 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>
13 lines
316 B
SQL
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
|
|
);
|