toru/atlas

Build a Place and PlaceDetail model

Closed this issue · 0 comments

toru commented

The Place model is just a container with locale-independent attributes. The actual content for a particular place is managed by the PlaceDetail model. This is because I want to store information for a particular place in both English, Japanese and perhaps more.

Place {
  id int,
  alternate_id string,
  url string,
  created_at,
  updated_at
}

PlaceDetail {
  id int,
  place_id int,
  locale string,
  name string,
  created_at,
  updated_at
}

Start with something simple like the above.