prorm API Reference
    Preparing search index...

    Function Security

    • Apply security controls to a model based on specified frameworks.

      Parameters

      • options: SecurityOptions

        Security configuration

      Returns (target: any) => void

        @Security({
      frameworks: ['GDPR', 'HIPAA', 'PCI_DSS'],
      audit: true,
      encrypt: ['ssn', 'creditCard'],
      mask: { ssn: 'ssn', creditCard: 'card-last4' },
      retention: { years: 7 },
      autoClassify: true,
      })
      class Patient extends Model { ... }