Skip to content
Michael Giesler edited this page Jan 3, 2016 · 11 revisions

Contents

Wir nutzen die NoSQL-Datenbank MongoDB mit ungefähr folgenden Collections und Feldern

Mit (tbd) gekennzeichnete Felder und Collection müssen noch implementiert werden.

user

  • Felder:
  • id (Id)
  • email (String)
  • password (String)
  • roles (Collection)
  • licenseeId (ObjectId) [nur für User der Rolle "Lizenznehmer"]
  • metadata (Hash)
    • created (timestamp)
    • active (timestamp)
  • bookmarks (Collection): [{topicId: xyz, textnodeId: "123h23"}, ...] (tbd)

textnode

  • Felder
  • id (Id)
  • text (String)
  • author_id (ObjectId)
  • created (Date)
  • topic_id (ObjectId): Themenfeld
  • story_id (ObjectId)
  • type (Int): (introduction|deepening)
  • status (Int): (inactive|active)
  • hitches (Collection): [{descr: "foobar", textnodeId: "123h23"}, ...] (tbd)

story (tbd)

  • Felder
  • id (Id)
  • name (String)
  • topic_id (ObjectId): Themenfeld
  • status (Int): (inactive|active)

topic (Themenfelder)

  • Felder
  • id (Id)
  • name (String)
  • status (Int): (inactive|active)

licensee (Lizenznehmer)

  • Felder
  • id (Id)
  • name (String)

readpath (tbd)

  • Felder
  • id
  • user_id
  • textnode_id
  • timestamp
  • previous_textnode_id