mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
24 lines
774 B
GraphQL
24 lines
774 B
GraphQL
"""
|
|
Represents an alternate title or common abbreviation for an entity.
|
|
|
|
For example, the anime Bakemonogatari has the synonym "Monstory".
|
|
"""
|
|
type Synonym @model(class: "App\\Models\\Wiki\\Synonym") {
|
|
"The primary key of the resource"
|
|
id: Int! @rename(attribute: "synonym_id")
|
|
|
|
"The alternate title or common abbreviations"
|
|
text: String!
|
|
|
|
"The type of the synonym"
|
|
type: SynonymType!
|
|
|
|
"The formatted string value of the type field"
|
|
typeLocalized: String! @localized
|
|
|
|
"The date that the resource was created"
|
|
createdAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "created_at")
|
|
|
|
"The date that the resource was updated"
|
|
updatedAt(format: String! = "Y-m-d H:i:s"): String @timestamp(attribute: "updated_at")
|
|
} |