-
Notifications
You must be signed in to change notification settings - Fork 0
/
party.graphql
51 lines (47 loc) · 1.47 KB
/
party.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
type Party @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
narrative: Narrative! @relation(name: "NarrativeParties")
players: [Player!]! @relation(name: "PartyPlayers")
owner: User @relation(name: "PartiesUser")
currentRound: Int! @defaultValue(value: "0")
startedAt: DateTime
completedAt: DateTime
displayName: String
text: String
location: String
time: String
otherNotes: String
}
type Player @model {
id: ID! @isUnique
updatedAt: DateTime!
party: Party! @relation(name: "PartyPlayers")
character: Character! @relation(name: "CharacterPlayers")
partyInstructions: [PartyInstruction!]! @relation(name: "PartyInstructionsPlayer")
promptAnswers: [PromptAnswer!]! @relation(name: "PlayerPromptAnswers")
roundNotes: [RoundNote!]! @relation(name: "PlayerRoundNotes")
displayName: String
}
type PromptAnswer @model {
id: ID! @isUnique
updatedAt: DateTime!
prompt: Prompt! @relation(name: "PromptPromptAnswers")
player: Player! @relation(name: "PlayerPromptAnswers")
text: String!
}
type PartyInstruction @model {
id: ID! @isUnique
updatedAt: DateTime!
player: Player! @relation(name: "PartyInstructionsPlayer")
instruction: Instruction! @relation(name: "InstructionPartyInstructions")
hasCompleted: Boolean
}
type RoundNote @model {
id: ID! @isUnique
updatedAt: DateTime!
round: CharacterRound! @relation(name: "CharacterRoundRoundNotes")
player: Player! @relation(name: "PlayerRoundNotes")
text: String!
}