An example from the docs is marked as deprecated.

Hello, I'm using postgres and my pgTable calls are being shown as "deprecated", as well as the example in the docs.

const table = pgTable('table', {
 id: integer('id'),
 name: text('name'),
}, (t) => ({
 unq: unique().on(t.id, t.name),
 unq2: unique('custom_name').on(t.id, t.name)
}));
Was this page helpful?