Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
551 B
TypeScript
23 lines
551 B
TypeScript
export declare enum SubscriptionStatus {
|
|
TRIAL = "trial",
|
|
ACTIVE = "active",
|
|
PAST_DUE = "past_due",
|
|
CANCELLED = "cancelled",
|
|
EXPIRED = "expired"
|
|
}
|
|
export declare class Subscription {
|
|
id: string;
|
|
tenant_id: string;
|
|
plan_id: string;
|
|
status: SubscriptionStatus;
|
|
current_period_start: Date;
|
|
current_period_end: Date;
|
|
trial_end: Date;
|
|
cancelled_at: Date;
|
|
external_subscription_id: string;
|
|
payment_provider: string;
|
|
metadata: Record<string, any>;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
}
|