emotion modeled as enum

This commit is contained in:
Ulf Gebhardt 2019-07-10 12:50:28 +02:00
parent a264ff8eee
commit 0c181758cb
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
enum Emotion {
surprised
cry
happy
angry
funny
}

View File

@ -2,7 +2,7 @@ type EMOTED @relation(name: "EMOTED") {
from: User
to: Post
emotion: String
emotion: Emotion
#createdAt: DateTime
#updatedAt: DateTime
createdAt: String