I'm working on architecting a sqlite database for a gallery application. I would like to know if using a time stamp to check if the db has been updated is good practice, or if there is a better way to do this.
Here's what I have...three tables:
buildings
buliding_id PK
code
name
description
timestamp
building_album
album_id PK
building_id FK (reference to buildings->building_id)
album_url
timestamp
building_images
image_id PK
album_id FK (reference to building_album->album_id)
image
timestamp
As of now I would have the application check against the server's db to see if any time stamps have changed, and if they have change those fields.