const tableName = 'auth_sessions' function buildTable(t) { t.string('sid').primary() t.string('user_id').notNullable() t.text('refresh_hash').notNullable() t.string('family').notNullable() t.datetime('expires_at', { precision: 3 }).notNullable() t.boolean('used').notNullable().defaultTo(false) t.boolean('revoked').notNullable().defaultTo(false) t.index('user_id') t.index('family') } module.exports = { tableName, buildTable }