14 lines
src/db/userTypes.ts
User record type as stored in the database, including internal fields.
// Database-level user record — includes all persisted fields.export interface DbUser { id: string; email: string; displayName: string; /** Bcrypt hash of the user's password. Internal — must not be exported. */ passwordHash: string; /** Salt used in password hashing. Internal — must not be exported. */ _salt: string; planId: string; createdAt: number; updatedAt: number;}