enum BlogKind {
  short
  long
}

type Blog @entity {
  id: ID!
  kind: BlogKind!
  isActive: Boolean!
  reviews: [BigInt!]!
  author: Author!
  categories: [Category!]!
}

type Author @entity {
  id: ID!
  blogCount: BigInt!
  name: String! # string
  rating: BigDecimal!
  paramInt: Int! # uint8
  paramBigInt: BigInt! # uint256
  paramBytes: Bytes!
  blogs: [Blog!]! @derivedFrom(field: "author")
}

type Category @entity {
  id: ID!
  name: String!
  count: BigInt!
}
