Option
was of table
The old name of the table, where it was renamed.
Value
One name, or a list of names. It is always stored as a list. Left out, nothing is taken as a rename.
Example
TypeScript
export const orders = table('orders', {
columns: { team: link('teams', { onRemove: 'remove' }), placedBy: link('users'), note: text({ optional: true }), total: number() },
was: ['sales'],
})