# Interface: SchemaOptions

# Hierarchy

  • SchemaOptions

# Properties

# Optional postHooks

postHooks? : Hook


# Optional preHooks

preHooks? : Hook


# Optional strict

strict? : undefined | false | true


# Optional timestamps

timestamps? : boolean | SchemaTimestampsConfig

The timestamps option tells Ottoman to assign createdAt and updatedAt fields to your schema. The type assigned is Date. By default, the names of the fields are createdAt and updatedAt. Customize the field names by setting timestamps.createdAt and timestamps.updatedAt.