Database Model
The webapp uses SQLite with two metadata tables plus dynamically created text value tables.
Metadata tables:
imported_packagesTracks each imported metadata/zip pair.package_tablesTracks source txt filenames and associated physical SQLite table names.
Metadata indexes:
idx_package_tables_package_idOptimizes package-scoped table lookups.idx_package_tables_package_id_source_txtOptimizes package + source filename lookups.idx_imported_packages_imported_atOptimizes recency-oriented package browsing.
Dynamic tables:
One physical table per imported
*.txtfile.Schema:
id,line_number,value.
Connection defaults:
PRAGMA foreign_keys = ONPRAGMA journal_mode = WALPRAGMA synchronous = NORMALPRAGMA busy_timeout = 5000
Import behavior summary:
Metadata
files_included(when present) limits which*.txtentries are imported from the ZIP.JSON files in the ZIP are currently ignored by importer persistence.
Duplicate metadata+zip imports are rejected via uniqueness constraints.