# IViewDefineOptions.viewDefinition property · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.iviewdefineoptions.viewdefinition/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

The complete create statement for the view.

**Signature:**

```typescript
viewDefinition: string;
```

## Remarks

Executed exactly as written, so it carries its own keywords — and writing it as `CREATE OR REPLACE VIEW` is what makes `sync({ withoutDrop: true })` an option later, which views that depend on each other need. The name it declares has to match the model's table name; that is checked before anything runs.

