From 0c181758cbd5250d3bd4a63d4192924e8376120e Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 10 Jul 2019 12:50:28 +0200 Subject: [PATCH] emotion modeled as enum --- backend/src/schema/types/enum/Emotion.gql | 7 +++++++ backend/src/schema/types/type/EMOTED.gql | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 backend/src/schema/types/enum/Emotion.gql diff --git a/backend/src/schema/types/enum/Emotion.gql b/backend/src/schema/types/enum/Emotion.gql new file mode 100644 index 000000000..88a436f98 --- /dev/null +++ b/backend/src/schema/types/enum/Emotion.gql @@ -0,0 +1,7 @@ +enum Emotion { + surprised + cry + happy + angry + funny +} \ No newline at end of file diff --git a/backend/src/schema/types/type/EMOTED.gql b/backend/src/schema/types/type/EMOTED.gql index 4c79d88e3..80d655b5c 100644 --- a/backend/src/schema/types/type/EMOTED.gql +++ b/backend/src/schema/types/type/EMOTED.gql @@ -2,7 +2,7 @@ type EMOTED @relation(name: "EMOTED") { from: User to: Post - emotion: String + emotion: Emotion #createdAt: DateTime #updatedAt: DateTime createdAt: String