// Backend for the {{projectName}} project demonstrating the `deactivation()` // schema mixin. // // deactivation() is a pure SCHEMA mixin (no plugins[] entry) — it adds // `deactivatedAt` + `deactivatedBy` columns. A deactivated subject can't // authenticate, but its row stays VISIBLE and queryable: no read-scoping, no // delete interception. That's the deliberate opposite of softDelete(), which // HIDES + anonymises. Set `deactivatedAt` with a normal `ctx.store.update`. import { defineEnv, envVar } from '@voltro/env' export const env = defineEnv({ LOG_LEVEL: envVar.enum(['debug', 'info', 'warn', 'error'], { access: 'public', default: 'info' }), }) export default { type: 'api' as const, name: '{{capProjectName}}{{capAppName}}', store: 'memory' as const, env, }