feat(auth): add lastSeenAt field to user schema and tests

This commit is contained in:
RainbowBird
2026-08-17 21:57:25 +08:00
parent bd790098d2
commit 5ea7bb1083
5 changed files with 52 additions and 8 deletions
@@ -0,0 +1,13 @@
import { user } from '@proj-airi/auth-shared'
import { getTableColumns } from 'drizzle-orm'
import { describe, expect, it } from 'vitest'
describe('better Auth schema contract', () => {
it('keeps the application-owned last_seen_at user column', () => {
const columns = getTableColumns(user)
expect(columns.lastSeenAt).toBeDefined()
expect(columns.lastSeenAt.name).toBe('last_seen_at')
expect(columns.lastSeenAt.notNull).toBe(false)
})
})