Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (47 sloc) 1.47 KB
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!
}
You can’t perform that action at this time.