Improve the publication table / data types to denormalize the values

Returning profile values where necessary will remove the need to compute
heavy joins unless the user actually wants all the data.

Now Publication points at OrderProfiles which don't expose the sequences
Orders->Sequence->EntryProfile avoids including the full `text` for the
sequence.
This commit is contained in:
Campbell Alden 2026-08-21 00:24:14 +09:00
parent 63e51fa017
commit 86b0d88874
4 changed files with 82 additions and 11 deletions

View file

@ -1,5 +1,14 @@
from .data import Publication, PublicationProfile, Order, Sequence, Entry
from .data import Publication, PublicationProfile, Order, Sequence, Entry, OrderProfile
from .service import PublicationService
from .repo import PublicationRepo
__all__ = ['Publication', 'PublicationProfile', 'Order', 'Sequence', 'Entry', 'PublicationService', 'PublicationRepo']
__all__ = [
'Publication',
'PublicationProfile',
'Order',
'OrderProfile',
'Sequence',
'Entry',
'PublicationService',
'PublicationRepo',
]