Modules
Users Module
User module and database schema used by Frigear applications.
@frigear-nu/users
This Nuxt module provides user-related functionality. The website includes it as a workspace dependency. It uses
@frigear-nu/module-kit to register its database schema.
Module modes
The module supports two modes, configured in nuxt.config.ts:
export default defineNuxtConfig({
users: {
mode: 'server',
},
})
serveris the default and registers the module's user table schema.clientis for applications that rely on a central authentication server rather than managing authentication themselves.
User table
The default SQLite schema includes an auto-incrementing id, a required name, a unique required email, optional
password and avatar fields, and createdAt / updatedAt timestamps. Other modules can add columns through the
module-kit schema extension helpers.
The server mode also supports schema configuration through users.settings.schemas.users. See the
module-kit guide for how table extensions are registered and merged.