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
When you add fields in Drizzle, they auto-include in validation. Only validation rules need manual override.
398
+
399
+
[Docs](https://elysiajs.com/integrations/drizzle)
400
+
401
+
---
402
+
363
403
### Custom Authorization
364
404
365
405
For additional checks beyond login (e.g., ownership, roles, permissions), add logic in the route handler. The `posts` module shows an ownership check example:
@@ -377,21 +417,6 @@ For additional checks beyond login (e.g., ownership, roles, permissions), add lo
377
417
}, { auth: true })
378
418
```
379
419
380
-
### Adding New Modules
381
-
382
-
The `posts` module is included as a reference CRUD implementation. Feel free to remove or replace it with your own modules.
383
-
384
-
To add a new module:
385
-
386
-
1. Create folder: `src/modules/your-module/`
387
-
2. Add `index.ts` (routes), `service.ts` (business logic), and optionally `schema.ts`
0 commit comments