Archived
Initial commit: everythingbutwork MVP
Internes Project-Management-Tool für ToolCTRL — ergänzend zu Plane (Tickets) und Outline (Doku). Umfasst Puls-Übersicht, Tagesrhythmus (Lock-in + Reflexion), Bereichs-Detail-Views (Entwicklung/Vertrieb/Marketing), Pflicht-Minimum-Check und Blocker-Lifecycle gemäß Projektmanagement-Leitfaden v3.0. Stack: pnpm-Monorepo · Vite + React 18 + Tailwind · Fastify + tRPC v11 + Drizzle ORM · Postgres 16 · Authentik OIDC (Phase 2, Dev-Auto-Login aktiv). Planungs-Artefakte unter _bmad-output/planning-artifacts/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
4f33509a0f
131 files changed
+34339
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const dealStageSchema = z.enum(['lead', 'erstgespraech', 'demo', 'angebot', 'abschluss']);
|
||||
export const DEAL_STAGES = dealStageSchema.options;
|
||||
|
||||
export const createDealInput = z.object({
|
||||
name: z.string().min(1).max(200),
|
||||
ownerUserId: z.string().uuid().optional(),
|
||||
valueEur: z.number().int().min(0),
|
||||
probability: z.number().int().min(0).max(100).default(50),
|
||||
stage: dealStageSchema.default('lead'),
|
||||
});
|
||||
export type CreateDealInput = z.infer<typeof createDealInput>;
|
||||
|
||||
export const updateDealStageInput = z.object({
|
||||
dealId: z.string().uuid(),
|
||||
stage: dealStageSchema,
|
||||
});
|
||||
export type UpdateDealStageInput = z.infer<typeof updateDealStageInput>;
|
||||
Reference in new issue
Block a user