# Lucid Documentation Updates: Column Alias Prefix and Schema Rules Import Paths

Canonical URL : https://adonisjs-signal.jrmc.dev/insights/230c24b0-e561-4e67-815e-7eaf0483d502
Source release or documentation date : 2026-11-16T12:05:49.000Z
Category : documentation | Developer impact : medium
Affected packages : @adonisjs/lucid

The Lucid ORM documentation was updated to introduce the \`columnAliasPrefix\` static property for models to customize table\-qualified column aliases when joining tables, preventing alias conflicts\. Additionally, guidance was clarified on how to specify \`rulesPaths\` in schema generation configuration, emphasizing that entries are import identifiers resolved like ES module imports, requiring relative paths \(e\.g\., starting with \`\./\`\) or package names\. A note was added about PostgreSQL's node\-postgres driver returning \`bigint\` values as strings, recommending typing them as \`string\` via global schema rules\.

## What this means for your code

Developers using Lucid's query builder with joins can now avoid column alias conflicts by setting \`columnAliasPrefix\` on their models\. When configuring schema generation, developers must ensure \`rulesPaths\` entries are valid import identifiers, using relative paths or package names, to avoid import errors\. PostgreSQL users should adjust their schema rules to type \`bigint\` columns as \`string\` to match driver behavior, preventing type mismatches\.

## Suggested actions

- Use the \`columnAliasPrefix\` static property in models to customize column alias prefixes when joining tables to avoid alias conflicts\.
- When configuring \`rulesPaths\` for schema generation, specify import identifiers correctly: use relative paths starting with \`\./\` or package names, not bare file paths\.
- For PostgreSQL users, define a global schema rule to type \`bigint\` columns as \`string\` to align with node\-postgres driver behavior\.

## Updated documentation

- [Introduction](https://lucid.adonisjs.com/docs/models)
- [Query builder](https://lucid.adonisjs.com/docs/model-query-builder)
- [Schema classes](https://lucid.adonisjs.com/docs/schema-classes)
- [Configuration](https://lucid.adonisjs.com/docs/configuration)
- [Schema generation](https://lucid.adonisjs.com/docs/schema-generation)

## Original sources

- [lucid\.adonisjs\.com: 2 documentation file\(s\)](https://github.com/adonisjs/lucid.adonisjs.com/compare/798060f49ac3548a64ae9be580c65f699a5bbf0c...3ac16b0637b9d359e719ed041df3debaeadaac37)
- [lucid\.adonisjs\.com: 1 documentation file\(s\)](https://github.com/adonisjs/lucid.adonisjs.com/compare/3ac16b0637b9d359e719ed041df3debaeadaac37...6b9fdd54b036d814a986d125fcf8002f6437a0c9)
- [lucid\.adonisjs\.com: 2 documentation file\(s\)](https://github.com/adonisjs/lucid.adonisjs.com/compare/6b9fdd54b036d814a986d125fcf8002f6437a0c9...7b1445bd8d9ac2d8b62e2ab396ea1b0dc02be9da)

AI-generated analysis based on the linked sources. Check the original documentation before changing your application.
