type DomainResult {
    totalCount: Int
    count: Int
    nodes: [Domain]
}

type Domain implements DbModel {
    id: ID
    name: String

    shortUrls: [ShortUrl]

    deleted: Boolean
    editor: User
    createdUtc: String
    updatedUtc: String
}

input DomainSort {
    id: SortOrder
    name: SortOrder

    deleted: SortOrder
    editorId: SortOrder
    createdUtc: SortOrder
    updatedUtc: SortOrder
}

input DomainFilter {
    id: IntFilter
    name: StringFilter

    deleted: BooleanFilter
    editor: IntFilter
    createdUtc: DateFilter
    updatedUtc: DateFilter
}

type DomainMutation {
    create(input: DomainCreateInput!): Domain
    update(input: DomainUpdateInput!): Domain
    delete(id: ID!): Boolean
    restore(id: ID!): Boolean
}

input DomainCreateInput {
    name: String!
}

input DomainUpdateInput {
    id: ID!
    name: String
}