Norman0406 / LISA

Lightweight Integrated System for Amateur Radio
GNU General Public License v3.0
2 stars 1 forks source link

Database structure #11

Open Norman0406 opened 9 years ago

Norman0406 commented 9 years ago

Create the general database structure for a logbook database. Tables might include

This is just a suggestion. Change it and add new tables as required.

Norman0406 commented 9 years ago

How to handle callsigns that have different annotations, like /P, /M, or prefixes when the user is operating from a foreign country? This is QSO-specific and might change from time to time. Maybe this could be stripped down to the same user, and additional annotations would be supplied in the logbook table for the specific QSO.

semaph0r commented 9 years ago

Simple regex which filters slashes/dashes during input validation before save transaction to the database. Otherwise the user will have a dupe. Not very promising, but easy to implement.

Norman0406 commented 9 years ago

Sounds good!

Norman0406 commented 9 years ago

There is some information about amateur radio callsign formation on Wikipedia.

Norman0406 commented 9 years ago

Table proposal:

The "stations" and "profiles" table is being referenced from "logbook". When the user has contact with the same station twice, the logbook references the same entry from "stations". When the user changes a little detail for the worked station, the entry in "stations" will be duplicated with the new information.

Norman0406 commented 9 years ago

Are custom fields unique per database or per QSO? I.e., when the user changes the name of a custom field in the database, will every QSO display the new name for the custom field? Alternatively, the custom field name could be stored for each QSO. But what with new QSOs? Will the custom fields be named in the same way as the last QSO or will they be reset?