Skip to content

Conversation

@PremanshBehl
Copy link

Implement base table inheritance functionality that allows users to define
common fields (like id, created_at, updated_at) in base tables and inherit
them in regular tables.

Features:

  • Add new "Base Tables" tab in side panel for managing base table definitions
  • Add "Inherit from" button in table details to select base table inheritance
  • Inherited fields are visually marked with orange background
  • Table's own fields take precedence over base table fields (conflict resolution)
  • Warning toast shown when field name conflicts are detected
  • Inheritance removal preserves table's own fields correctly
  • Works across all database types (not just PostgreSQL)

Technical changes:

  • Create BaseTablesContext for managing base tables state
  • Add BaseTablesTab component with full CRUD operations
  • Update table schema to include baseTableId and baseTables array
  • Integrate with save/load system for persistence
  • Add translation keys for all new UI elements
  • Fix field conflict detection and inheritance removal logic

This addresses the need for reusable field definitions similar to ORM base
models, allowing users to define common fields once and inherit them across
multiple tables.

@vercel
Copy link

vercel bot commented Nov 23, 2025

@PremanshBehl is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

@PremanshBehl
Copy link
Author

Sir please review my PR

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.

1 participant