Files
petfeed/src/trpc/routers/_app.ts
T
adminandClaude Sonnet 4.6 73666a3916 feat(03-01): Phase 3 schema foundation — Reaction/Comment/Repost/Hashtag models + router stubs RED
- Prisma: add Reaction, Comment, Repost, Hashtag, PostHashtag models; PostType.REPOST enum
- Back-relations on Post and Pet for all Phase 3 models (named to avoid ambiguous-relation errors)
- 5 tRPC router stubs: reactions, comments, reposts, explore, search — all registered in _app.ts
- Extend prisma-mock.ts with Phase 3 model mocks
- 5 test scaffold files: 14 failing RED + 3 FORBIDDEN passing; 53 Phase 2 tests untouched
- Phase 3 planning: CONTEXT, RESEARCH, UI-SPEC, VALIDATION, 6 PLANs, ROADMAP + STATE updated

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 11:31:48 +02:00

36 lines
1.3 KiB
TypeScript

import { router } from "@/trpc/init";
import { petsRouter } from "@/trpc/routers/pets";
import { mediaRouter } from "@/trpc/routers/media";
import { postsRouter } from "@/trpc/routers/posts";
import { storiesRouter } from "@/trpc/routers/stories";
import { milestonesRouter } from "@/trpc/routers/milestones";
import { followsRouter } from "@/trpc/routers/follows";
import { blocksRouter } from "@/trpc/routers/blocks";
import { reportsRouter } from "@/trpc/routers/reports";
import { feedRouter } from "@/trpc/routers/feed";
import { reactionsRouter } from "@/trpc/routers/reactions";
import { commentsRouter } from "@/trpc/routers/comments";
import { repostsRouter } from "@/trpc/routers/reposts";
import { exploreRouter } from "@/trpc/routers/explore";
import { searchRouter } from "@/trpc/routers/search";
export const appRouter = router({
pets: petsRouter,
media: mediaRouter,
posts: postsRouter,
stories: storiesRouter,
milestones: milestonesRouter,
follows: followsRouter,
blocks: blocksRouter,
reports: reportsRouter,
feed: feedRouter,
reactions: reactionsRouter,
comments: commentsRouter,
reposts: repostsRouter,
explore: exploreRouter,
search: searchRouter,
});
// Export the type for use in the client
export type AppRouter = typeof appRouter;