-
Notifications
You must be signed in to change notification settings - Fork 7
DatabaseLayout
Alex Rudnick edited this page Oct 2, 2013
·
4 revisions
- documents
- sentences
- tags
- translations of sentences
- users
-
documents
- have a source language (and a target language??!)
- have many tags
- have a user who uploaded them
- have a title
-
sentences
- have text
- pertain to a document
- have many translations (and a most recent one -- so translations have an ordering)
-
translations
- have text
- have a user who did them
- pertain to a sentence
- pertain to a document (this is strictly not necessary to store, but we're going to do queries like "give me all the translations for this document")