Skip to content

Latest commit

 

History

History

audit-fields

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Audit fields

Add createdBy and lastModifiedBy audit fields to collections and globals.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/audit-fields
  1. Add the plugin to your payload.config.ts:
/// ....
import { auditFieldsPlugin } from "@payload-bites/audit-fields";

export default buildConfig({
  // ...
  plugins: [
    // ...
    auditFieldsPlugin({
      // ...
    }),
  ],
});

Defaults

For defaults, refer to defaults.ts.

Options

For options, refer to types.ts.