Skip to content

Schema unification (WIP)#242

Open
ScriptRaccoon wants to merge 10 commits into
mainfrom
unify-schema-step-by-step
Open

Schema unification (WIP)#242
ScriptRaccoon wants to merge 10 commits into
mainfrom
unify-schema-step-by-step

Conversation

@ScriptRaccoon

@ScriptRaccoon ScriptRaccoon commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Idea: combine categories and functors into a single table. Do the same with all other associated tables. Refactor the seed script, the deduction system, and actually, the whole application. Prepare for other categorical structures (#4) without introducing heavy code duplication. Also, remove the current code duplication between categories and functors.

This is the third attempt of doing this. The first one was never a PR, the second one was #224.

TODO:

  • deduplicate queries
  • deduplicate functions
  • deduplicate load functions
  • deduplicate pages

NOTES

The id cannot be the only PK for properties since otherwise we cannot add the property "cocomplete" for, say, monoidal categories, since there is already such a property for categories. (A monoidal category is cocomplete when its underlying category is cocomplete and the tensor product preserves colimits in each variable, so this is a different notion.) So either we awkwardly rename the properties, or make the combination of (id, type) the PK.

@ScriptRaccoon ScriptRaccoon force-pushed the unify-schema-step-by-step branch from e19d49a to cd79a22 Compare June 10, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant