Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Database schema for "digital archive"

Featured Replies

Hi all,

I'm new to these forums (although I've read them quite a bit). I've been trying to put together an appropriate data schema for a new database I am creating, I thought this would be a good place to ask you guys for advice.

Basically it will be a library of digitized "stuff", from audio recordings to scanned old photographs and documents, to old VHS tapes.

The basic functionality should be for the end-user to type a word, say "hat", and have a list of results returned that all contain "hat" as a keyword. The search results should be categorized ("video", "audio", etc..).

1. What should the database schema look like? I've though about creating a general "Items" table, which would have two foreign keys fk_ID and fk_type, + fields for all the general info.

Then create a separate table for each item type with a global field g_type to identify it, an ID field pk_ID for the objects, + extra fields that are specific to that item type.

Does this sound like a good start?

2. Is it possible to make the Items layout conditional, so that it displays different info according to the different item types?

3. Won't I be running into problems with searching if I want to search through the fields that are specific to an item type? (as opposed to fields from the general Items table)

4. This is a different problem, but how should I handle the keywords? Can I put those in a separate table?

Thanks for your help,

Also, if you have any good general resources for designing this kind of database it would be much appreciated.

Peter

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.