Technical specification for protected (read-only) and hidden (server-side only) fields within the nuxt-auto-crud engine.
The nuxt-auto-crud engine enforces strict security boundaries by automatically filtering fields during CRUD operations.
Protected fields are system-managed and cannot be updated via the generic CRUD endpoints. The engine automatically strips these from incoming payloads.
Default Protected Fields:
idcreatedAt, updatedAt, deletedAt, created_at, updated_at, deleted_atcreatedBy, updatedBy, deletedBy, created_by, updated_by, deleted_byHidden fields are stripped from all API responses (both GET list and GET single) to prevent sensitive data leakage.
Default Hidden Fields:
password, resetToken, githubId, googleId (and snake_case variants)secret, tokendeletedAt, createdBy, updatedBy, etc.Custom field sets can be defined per-model within the modelMapper.ts utility using customUpdatableFields and customHiddenFields.