-
Notifications
You must be signed in to change notification settings - Fork 4
Datenbank
Michael Giesler edited this page Jan 3, 2016
·
11 revisions
Wir nutzen die NoSQL-Datenbank MongoDB mit ungefähr folgenden Collections und Feldern
Mit (tbd) gekennzeichnete Felder und Collection müssen noch implementiert werden.
- 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)
- 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)
- Felder
- id (Id)
- name (String)
- topic_id (ObjectId): Themenfeld
- status (Int): (inactive|active)
- Felder
- id (Id)
- name (String)
- status (Int): (inactive|active)
- Felder
- id (Id)
- name (String)
- Felder
- id
- user_id
- textnode_id
- timestamp
- previous_textnode_id