feat: add typescript monorepo with pnpm workspaces and prisma database package

- root package.json + pnpm-workspace.yaml + tsconfig.base.json
- packages/types: canonical enums (TenantStatus, AgentState)
- packages/shared: re-exports types, base for future utilities
- packages/database: Prisma 7 schema with driver adapter (pg), initial
  tenants table matching agente.md section 29, first migration applied
This commit is contained in:
2026-08-27 23:22:38 -03:00
parent 2f130622d1
commit d1addb0a31
19 changed files with 1615 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
export enum TenantStatus {
TRIAL = "TRIAL",
ACTIVE = "ACTIVE",
SUSPENDED = "SUSPENDED",
PAST_DUE = "PAST_DUE",
CANCELLED = "CANCELLED",
}
export enum AgentState {
OFFLINE = "OFFLINE",
LOGGED_IN = "LOGGED_IN",
AVAILABLE = "AVAILABLE",
RESERVED = "RESERVED",
RINGING = "RINGING",
IN_CALL = "IN_CALL",
WRAP_UP = "WRAP_UP",
PAUSED = "PAUSED",
}