# BaseModel.sync() method · @imqueue/pg-sequelize

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

Creates this model's table, or does nothing when the model is a view.

**Signature:**

```typescript
static sync(options?: SyncOptions): Promise<any>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| options | [SyncOptions](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.syncoptions/) | _(Optional)_ Sequelize's own sync options. |


**Returns:**

Promise<any>

Resolves when the table exists, or immediately for a view.

## Remarks

A view is skipped deliberately: it normally selects from tables that do not exist yet, so views are left to the second pass `Sequelize.sync()` runs once every table is there.

