template-saas/apps/backend/dist/modules/billing/entities/subscription.entity.d.ts
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
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>
2026-01-07 04:41:24 -06:00

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;
}