Configuration for encrypted fields in a Prisma model.
const field: FieldConfig = { model: "User", fields: ["email", "ssn", "phone"],}; Copy
const field: FieldConfig = { model: "User", fields: ["email", "ssn", "phone"],};
The model name (e.g. "User", "Patient").
Fields to encrypt (e.g. ["email", "ssn", "phone"]).
Configuration for encrypted fields in a Prisma model.
Example