mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-19 01:51:11 +08:00
- 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>
21 lines
486 B
TypeScript
21 lines
486 B
TypeScript
export type ProFeature = 'white_label' | 'open_registration' | 'teams_unlimited' | 'team_quotas'
|
|
|
|
export interface LicenseEntitlement {
|
|
account_id: string
|
|
instance_id: string
|
|
plan: 'community' | 'pro'
|
|
features: ProFeature[]
|
|
issued_at: number
|
|
expires_at: number
|
|
}
|
|
|
|
export interface BindingState {
|
|
bound: boolean
|
|
account_email?: string
|
|
plan?: 'community' | 'pro'
|
|
features?: ProFeature[]
|
|
expires_at?: number
|
|
last_refresh_at?: number
|
|
last_refresh_error?: string
|
|
}
|