You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Clear Responsibility**: Each file has a single, clear purpose
246
246
-**Reduced Complexity**: Avoid hundreds of lines in single files
247
247
248
+
### Shared Schemas for CRUD Modules (Mandatory)
249
+
250
+
**MANDATORY PATTERN**: For route directories that implement complete CRUD operations on a single entity (Create, Read, Update, Delete), you **must** create a shared `schemas.ts` file to eliminate duplication and ensure consistency.
251
+
252
+
#### When to Create Shared Schemas
253
+
254
+
Create a `schemas.ts` file when your route directory contains:
255
+
-**Multiple endpoints** operating on the same core entity
256
+
-**Duplicate schema definitions** across route files
0 commit comments