swisstopo / swissgeol-assets-suite

1 stars 0 forks source link

Store, manage and display legal docs separately from the main asset files #28

Open stijnvermeeren-swisstopo opened 5 months ago

stijnvermeeren-swisstopo commented 5 months ago

Currently, only one type of asset-file relationship is implemented in the application. This relationship is used both for the actual geological documents, as well as for the legal consent documents. In the database schema, this relationship is represented in the asset_file table, which only has two columns: asset_id (a foreign key to the asset table) and file_id (a foreign key to the file table). This has several disadvantages:

image

The database schema currently already contains tables legal_doc (with columns legal_doc_id, asset_id, title and legal_doc_item_code; empty as of September 2023) and legal_doc_item (with codes "contract", "federalData", "other" and "permissionForm" defined as of September 2023). These tables are not used anywhere in the application. It seems like these tables were already added to the database schema in anticipation of a feature similar to the one described in this ticket. However, money probably ran out before the feature was actually implemented.

ACs

vej-ananas commented 3 months ago

Schätzungen Frontend 2 Backend 2