Skip to content

feat: add is_blueprint_copy field to asset models#446

Merged
Crypta-Eve merged 4 commits intoeveseat:masterfrom
madejusz:feature/blueprint-copy-flag
May 5, 2026
Merged

feat: add is_blueprint_copy field to asset models#446
Crypta-Eve merged 4 commits intoeveseat:masterfrom
madejusz:feature/blueprint-copy-flag

Conversation

@madejusz
Copy link
Copy Markdown
Contributor

@madejusz madejusz commented Apr 6, 2026

Add migration for is_blueprint_copy (boolean, nullable) column on character_assets and corporation_assets tables. Map the field from ESI response and add it to model casts and OpenAPI schema.

madejusz and others added 2 commits April 6, 2026 10:06
Add migration for is_blueprint_copy (boolean, nullable) column on
character_assets and corporation_assets tables. Map the field from
ESI response and add it to model casts and OpenAPI schema.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@recursivetree recursivetree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long to respond.

Your approach looks good, but I think we can improve the database schema by not relying on nulls.

madejusz and others added 2 commits April 16, 2026 06:41
Per reviewer feedback: NULL where the field is not applicable (saves
disk/query time on sparse column), false for BPOs, true for BPCs —
matching ESI, which omits the field for non-blueprints and returns
true/false for blueprints.

- migration: nullable() instead of default(false)
- asset jobs: drop `?? false` coalescing so JSONPath null passes through

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Crypta-Eve Crypta-Eve merged commit 03b53d5 into eveseat:master May 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants