auth/account_schema.ts view source
Account import type {Account} from '@fuzdev/fuz_app/auth/account_schema.js'; Account — authentication identity. You log in as an account.
id
type Uuid
username
type string
email
type string | null
email_verified
type boolean
password_hash
type string
created_at
type string
created_by
type Uuid | null
updated_at
type string
updated_by
type Uuid | null
deleted_at
Soft-delete tombstone. Non-null means the account is deleted
(delete = soft); auth resolution treats it as absent. A hard
purge removes the row entirely. See auth/account_queries.ts.
type string | null
deleted_by
Actor that performed the soft-delete (initiator: self / admin /
keeper). Paired with deleted_at, mirroring role_grant's
revoked_at / revoked_by. Plain UUID (no FK, like
created_by / updated_by on this table).
type Uuid | null