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>
31 lines
715 B
TypeScript
31 lines
715 B
TypeScript
export declare enum AuditAction {
|
|
CREATE = "create",
|
|
UPDATE = "update",
|
|
DELETE = "delete",
|
|
READ = "read",
|
|
LOGIN = "login",
|
|
LOGOUT = "logout",
|
|
EXPORT = "export",
|
|
IMPORT = "import"
|
|
}
|
|
export declare class AuditLog {
|
|
id: string;
|
|
tenant_id: string;
|
|
user_id: string;
|
|
action: AuditAction;
|
|
entity_type: string;
|
|
entity_id: string;
|
|
old_values: Record<string, any>;
|
|
new_values: Record<string, any>;
|
|
changed_fields: string[];
|
|
ip_address: string;
|
|
user_agent: string;
|
|
endpoint: string;
|
|
http_method: string;
|
|
response_status: number;
|
|
duration_ms: number;
|
|
description: string;
|
|
metadata: Record<string, any>;
|
|
created_at: Date;
|
|
}
|