Files
core/tests/datasets/messages.yml
T
Basilius Sauter 0ff9958830 Adds MotD and Message model as well as tests
This commit adds the MotD model for storing and retrieving
messages-of-the-day.

It also adds a model for messages. Messages have an author as well as a
thread they belong to, the thread can be read by a specific number of
authors. FUrthermore, the message model supports system messages.

This commit introduces a number of needed changes:
- Character is now implementing the CharacterInterface
- MissingCharacter and SystemCharacter are supporting "pseudo-characters"
- trait MockCharacter implements non-implemented methods for
  MissingCharacter and SytemCharacter
- Characters are now soft-deletable. Models wanting to load soft-deleted
  characters need to fetch them eagerly.

Closes #17
2016-05-12 11:04:04 +02:00

37 lines
840 B
YAML

characters:
-
id: 1
name: "Testcharacter 1"
displayName: "Testcharacter 1"
-
id: 2
name: "Testcharacter 2"
displayName: "Testcharacter 2"
-
id: 3
name: "Testcharacter 1"
displayName: "Deleted Testcharacter"
deletedAt: "2011-11-11 11:11:11"
-
id: 4
name: "Testcharacter 3"
displayName: "Testcharacter 3"
message_threads:
-
id: 1
threadKey: "messageThread://94ed406c5b7809bbdbf1e092cdbc2e4a"
messages:
-
id: 1
author_id: 1
thread_id: 1
message: "Hi!"
createdAt: "2000-01-01 00:00:01"
systemMessage: false
message_threads_x_characters:
-
messagethread_id: 1
character_id: 1
-
messagethread_id: 1
character_id: 2